#577
AfisCircuite
Se dă lista arcelor unui graf orientat. Să se afișeze, în ordine lexicografică, toate circuitele de lungime trei.
Problema | AfisCircuite | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50916242 | Utilizator | |
Fișier | afiscircuite.cpp | Dimensiune | 290 B |
Data încărcării | 14 Mai 2024, 09:36 | Scor / rezultat | Eroare de compilare |
afiscircuite.cpp:2:7: error: expected nested-name-specifier before 'namesapce' using namesapce std; ^ afiscircuite.cpp:2:7: error: 'namesapce' has not been declared afiscircuite.cpp:2:17: error: expected ';' before 'std' using namesapce std; ^ afiscircuite.cpp:2:17: error: 'std' does not name a type afiscircuite.cpp: In function 'int main()': afiscircuite.cpp:6:1: error: 'cin' was not declared in this scope cin>>n>>m; ^ afiscircuite.cpp:6:1: note: suggested alternative: In file included from afiscircuite.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ afiscircuite.cpp:16:5: error: 'cout' was not declared in this scope cout ^ afiscircuite.cpp:16:5: note: suggested alternative: In file included from afiscircuite.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ afiscircuite.cpp:16:5: error: expected ';' at end of input cout ^ afiscircuite.cpp:16:5: error: expected '}' at end of input afiscircuite.cpp:16:5: error: expected '}' at end of input afiscircuite.cpp:16:5: error: expected '}' at end of input
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema AfisCircuite 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ă.