#430
Se dă lista muchiilor unui graf neorientat. Să se afișeze vârfurile izolate ale grafului.
Problema | Izolate | Operații I/O |
![]() izolate.in /izolate.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58011604 | Utilizator | |
Fișier | izolate.cpp | Dimensiune | 445 B |
Data încărcării | 08 Mai 2025, 10:17 | Scor / rezultat | Eroare de compilare |
izolate.cpp:17:1: error: stray '\342' in program { f››n; ^ izolate.cpp:17:1: error: stray '\200' in program izolate.cpp:17:1: error: stray '\272' in program izolate.cpp:17:1: error: stray '\342' in program izolate.cpp:17:1: error: stray '\200' in program izolate.cpp:17:1: error: stray '\272' in program izolate.cpp:21:1: error: stray '\343' in program gくくくく” ^ izolate.cpp:21:1: error: stray '\201' in program izolate.cpp:21:1: error: stray '\217' in program izolate.cpp:21:1: error: stray '\343' in program izolate.cpp:21:1: error: stray '\201' in program izolate.cpp:21:1: error: stray '\217' in program izolate.cpp:21:1: error: stray '\343' in program izolate.cpp:21:1: error: stray '\201' in program izolate.cpp:21:1: error: stray '\217' in program izolate.cpp:21:1: error: stray '\343' in program izolate.cpp:21:1: error: stray '\201' in program izolate.cpp:21:1: error: stray '\217' in program izolate.cpp:21:1: error: stray '\342' in program izolate.cpp:21:1: error: stray '\200' in program izolate.cpp:21:1: error: stray '\235' in program izolate.cpp:24:1: error: stray '\357' in program } ^ izolate.cpp:24:1: error: stray '\275' in program izolate.cpp:24:1: error: stray '\235' in program izolate.cpp: In function 'int grad(int)': izolate.cpp:9:14: error: 'o' was not declared in this scope { int j, nr=o; ^ izolate.cpp: In function 'int main()': izolate.cpp:17:10: error: expected ';' before 'n' { f››n; ^ izolate.cpp:17:11: warning: statement has no effect [-Wunused-value] { f››n; ^ izolate.cpp:18:20: error: no match for 'operator[]' (operand types are 'int [101]' and 'std::ifstream {aka std::basic_ifstream<char>}') while (f>>i>>j)a[i][f]=a[j][i]=1; ^ izolate.cpp:22:1: error: expected ';' before 'for' for(1=1;1<=n;1++)if(grad(1) ==0)g<<i<<" "; ^ izolate.cpp:22:8: warning: statement has no effect [-Wunused-value] for(1=1;1<=n;1++)if(grad(1) ==0)g<<i<<" "; ^ izolate.cpp:22:10: warning: statement has no effect [-Wunused-value] for(1=1;1<=n;1++)if(grad(1) ==0)g<<i<<" "; ^ izolate.cpp:22:15: error: lvalue required as increment operand for(1=1;1<=n;1++)if(grad(1) ==0)g<<i<<" "; ^ izolate.cpp:22:17: error: expected ';' before ')' token for(1=1;1<=n;1++)if(grad(1) ==0)g<<i<<" "; ^ izolate.cpp:23:9: error: expected '}' at end of input return 0; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Izolate face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.