#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 | #63982796 | Utilizator | |
| Fișier | gengraf.cpp | Dimensiune | 687 B |
| Data încărcării | 01 Aprilie 2026, 17:27 | Scor/rezultat | Eroare de compilare |
gengraf.cpp:3:1: error: 'ifstream' does not name a type ifstream fin("gengraf.in"); ^ gengraf.cpp:4:1: error: 'ofstream' does not name a type ofstream fout("gengraf.out"); ^ gengraf.cpp: In function 'int main()': gengraf.cpp:9:5: error: 'cin' was not declared in this scope cin >> n; ^ gengraf.cpp:14:5: error: 'cout' was not declared in this scope cout << total << "\n"; ^ gengraf.cpp:22:21: error: 'a' was not declared in this scope a[i][j] = 1; ^ gengraf.cpp:23:17: error: 'else' without a previous 'if' else ^ gengraf.cpp:25:17: error: 'k' was not declared in this scope k++; ^ gengraf.cpp:31:17: error: 'fout' was not declared in this scope fout << a[i][j] << " "; ^ gengraf.cpp:31:25: error: 'a' was not declared in this scope fout << a[i][j] << " "; ^ gengraf.cpp:32:13: error: 'fout' was not declared in this scope fout << "\n"; ^ gengraf.cpp:34:9: error: 'fout' was not declared in this scope fout << "\n"; ^ gengraf.cpp: At global scope: gengraf.cpp:37:5: error: expected unqualified-id before 'return' return 0; ^ gengraf.cpp:38:1: error: expected declaration 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ă.