#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 | #9544201 | Utilizator | |
Fișier | gengraf.cpp | Dimensiune | 712 B |
Data încărcării | 11 Mai 2018, 10:28 | Scor / rezultat | Eroare de compilare |
gengraf.cpp:3:14: warning: missing terminating " character [enabled by default] ifstream fin("gengraf.in); ^ gengraf.cpp:3:1: error: missing terminating " character ifstream fin("gengraf.in); ^ gengraf.cpp:4:15: warning: missing terminating " character [enabled by default] ofstream fout("gengraf.out); ^ gengraf.cpp:4:1: error: missing terminating " character ofstream fout("gengraf.out); ^ gengraf.cpp:5:7: error: 'st' has not been declared int n,st[10][10],t; ^ gengraf.cpp:5:18: error: 't' has not been declared int n,st[10][10],t; ^ gengraf.cpp:5:19: error: expected ')' before ';' token int n,st[10][10],t; ^ gengraf.cpp:5:19: error: expected ')' before ';' token gengraf.cpp: In function 'void afis()': gengraf.cpp:9:16: error: 'x' was not declared in this scope for(i=1;i<=x;i++) ^ gengraf.cpp:11:13: error: 'j' was not declared in this scope for(j=1;j<i;j++) ^ gengraf.cpp:12:9: error: 'fout' was not declared in this scope fout<<'0'<<" "; ^ gengraf.cpp:13:13: error: 'j' was not declared in this scope for(j=i+1;j<=n;j++) ^ gengraf.cpp:13:22: error: 'n' was not declared in this scope for(j=i+1;j<=n;j++) ^ gengraf.cpp:14:13: error: 'fout' was not declared in this scope fout<<st[j][i]<<" "; ^ gengraf.cpp:14:19: error: 'st' was not declared in this scope fout<<st[j][i]<<" "; ^ gengraf.cpp:15:13: error: 'fout' was not declared in this scope fout<<'\n'; ^ gengraf.cpp:17:5: error: 'fout' was not declared in this scope fout<<'\n'; ^ gengraf.cpp: At global scope: gengraf.cpp:21:1: error: expected unqualified-id before '{' token { ^
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ă.