#430
Izolate
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 | #30125997 | Utilizator | |
Fișier | izolate.cpp | Dimensiune | 864 B |
Data încărcării | 14 Iunie 2021, 18:35 | Scor / rezultat | Eroare de compilare |
izolate.cpp:9:13: error: conflicting declaration 'int f' int i,j,e,n,f,k,f,t,p, b[101][101]; ^ izolate.cpp:6:10: error: 'f' has a previous declaration as 'std::ifstream f' ifstream f(" izolate.in " ); ^ izolate.cpp:9:17: error: conflicting declaration 'int f' int i,j,e,n,f,k,f,t,p, b[101][101]; ^ izolate.cpp:6:10: error: 'f' has a previous declaration as 'std::ifstream f' ifstream f(" izolate.in " ); ^ izolate.cpp: In function 'int main()': izolate.cpp:28:31: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(b[p][k]=b[k][p]) ^ izolate.cpp:31:13: error: expected '}' before 'else' else ^ izolate.cpp: At global scope: izolate.cpp:38:5: error: 'g' does not name a type g<<endl; ^ izolate.cpp:40:6: error: expected unqualified-id before 'for' for(t= 1 ; t <= n ; t++) ^ izolate.cpp:40:17: error: 't' does not name a type for(t= 1 ; t <= n ; t++) ^ izolate.cpp:40:26: error: 't' does not name a type for(t= 1 ; t <= n ; t++) ^ izolate.cpp:49:5: error: expected unqualified-id before 'return' return 0; ^ izolate.cpp:50:1: error: expected declaration before '}' token } ^
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ă.