#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 | #54159453 | Utilizator | |
Fișier | gengraf.cpp | Dimensiune | 785 B |
Data încărcării | 21 Noiembrie 2024, 07:53 | Scor / rezultat | Eroare de compilare |
gengraf.cpp:1:19: error: missing terminating > character #include <iostream ^ gengraf.cpp:2:1: error: expected unqualified-id before '>' token > ^ gengraf.cpp:5:1: error: 'ifstream' does not name a type ifstream cin("gengraf.in"); ^ gengraf.cpp:6:1: error: 'ofstream' does not name a type ofstream cout("gengraf.out"); ^ gengraf.cpp: In function 'void afisare()': gengraf.cpp:21:13: error: 'cout' was not declared in this scope cout << a[i][j] << " "; ^ gengraf.cpp:21:13: note: suggested alternative: In file included from gengraf.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ gengraf.cpp:22:9: error: 'cout' was not declared in this scope cout << '\n'; ^ gengraf.cpp:22:9: note: suggested alternative: In file included from gengraf.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ gengraf.cpp:24:5: error: 'cout' was not declared in this scope cout << '\n'; ^ gengraf.cpp:24:5: note: suggested alternative: In file included from gengraf.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ gengraf.cpp: In function 'int main()': gengraf.cpp:37:5: error: 'cin' was not declared in this scope cin >> n; ^ gengraf.cpp:37:5: note: suggested alternative: In file included from gengraf.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ gengraf.cpp:40:5: error: 'cout' was not declared in this scope cout << p << '\n'; ^ gengraf.cpp:40:5: note: suggested alternative: In file included from gengraf.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^
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ă.