#466
Se dă un număr natural n
. Construiți toate grafurile neorientate cu n
vârfuri.
Problema | GenGraf | Operații I/O |
![]() gengraf.in /gengraf.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57591363 | Utilizator | |
Fișier | gengraf.cpp | Dimensiune | 752 B |
Data încărcării | 06 Aprilie 2025, 19:55 | Scor / rezultat | Eroare de compilare |
gengraf.cpp:10:17: error: array bound is not an integer constant before ']' token bool bk[mMAX + 1]; ^ gengraf.cpp:11:17: error: array bound is not an integer constant before ']' token bool gf[nMAX + 1][nMAX + 1]; ^ gengraf.cpp:11:27: error: array bound is not an integer constant before ']' token bool gf[nMAX + 1][nMAX + 1]; ^ gengraf.cpp: In function 'void back(int)': gengraf.cpp:20:13: error: 'gf' was not declared in this scope gf[i][j] = gf[j][i] = bk[++k]; ^ gengraf.cpp:20:35: error: 'bk' was not declared in this scope gf[i][j] = gf[j][i] = bk[++k]; ^ gengraf.cpp:24:21: error: 'gf' was not declared in this scope fout << gf[i][j] << ' '; ^ gengraf.cpp:30:4: error: 'bk' was not declared in this scope bk[pos] = 0; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GenGraf 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ă.