#437
Se dă lista muchiilor unui graf neorientat. Să se verifice dacă graful este sau nu conex.
Problema | Conex | Operații I/O |
![]() conex.in /conex.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54384562 | Utilizator | |
Fișier | conex.cpp | Dimensiune | 477 B |
Data încărcării | 27 Noiembrie 2024, 10:33 | Scor / rezultat | Eroare de compilare |
conex.cpp:2:1: error: 'ifstream' does not name a type ifstream f("conex.in") ^ conex.cpp:5:19: error: 'nod' was not declared in this scope int a[101][101],v[nod],n,i,x,y,t; ^ conex.cpp: In function 'void dfs(int)': conex.cpp:9:5: error: 'v' was not declared in this scope v[nod]=1; ^ conex.cpp: In function 'int main()': conex.cpp:16:5: error: 'f' was not declared in this scope f>>n; ^ conex.cpp:21:12: error: 'v' was not declared in this scope if(v[i]==0) ^ conex.cpp:23:10: error: expected primary-expression before '>' token if(t=>0) ^ conex.cpp:24:9: error: 'g' was not declared in this scope g<<"DA"; ^ conex.cpp:26:9: error: 'g' was not declared in this scope g<<"NU"; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Conex 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ă.