#466
GenGraf
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 | #22496466 | Utilizator | |
Fișier | gengraf.cpp | Dimensiune | 664 B |
Data încărcării | 16 Aprilie 2020, 19:51 | Scor / rezultat | Eroare de compilare |
gengraf.cpp:1:10: error: #include expects "FILENAME" or <FILENAME> #include ^ gengraf.cpp:2:10: error: #include expects "FILENAME" or <FILENAME> #include ^ gengraf.cpp:5:1: error: 'ifstream' does not name a type ifstream fin("gengraf.in"); ^ gengraf.cpp:6:1: error: 'ofstream' does not name a type ofstream fout("gengraf.out"); ^ gengraf.cpp: In function 'void afis()': gengraf.cpp:21:13: error: 'fout' was not declared in this scope fout << a[i][j] << " "; ^ gengraf.cpp:22:9: error: 'fout' was not declared in this scope fout << "n"; ^ gengraf.cpp:24:5: error: 'fout' was not declared in this scope fout << "n"; ^ gengraf.cpp: In function 'void back(int)': gengraf.cpp:30:20: error: expected ')' before ';' token m = n*(n-1) / 2; ^ gengraf.cpp:34:5: error: 'fout' was not declared in this scope fout << p << "n"; ^
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ă.