Problema | sir_munte | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51551748 | Utilizator | |
Fișier | sir_munte.cpp | Dimensiune | 1.34 KB |
Data încărcării | 10 Iulie 2024, 00:28 | Scor / rezultat | Eroare de compilare |
sir_munte.cpp:3:1: error: 'usend' does not name a type usend namespace std; ^ sir_munte.cpp: In function 'int main()': sir_munte.cpp:9:5: error: 'cin' was not declared in this scope cin >> n; ^ sir_munte.cpp:9:5: note: suggested alternative: In file included from sir_munte.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ sir_munte.cpp:16:13: error: 'cout' was not declared in this scope cout<< "NU" ; // daca gasim doua elementele egale, nu poate fi munte ^ sir_munte.cpp:16:13: note: suggested alternative: In file included from sir_munte.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ sir_munte.cpp:21:23: error: 'cr' was not declared in this scope if ( cr = 0 ) ^ sir_munte.cpp:25:21: error: 'cout' was not declared in this scope cout<< "NU" ; // elemente descrescatoare si nu a fost parte crescatoare ^ sir_munte.cpp:25:21: note: suggested alternative: In file included from sir_munte.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ sir_munte.cpp:34:25: error: 'cout' was not declared in this scope cout<< "NU" ; // elemente crescatoare dupa parte descrescatoare ^ sir_munte.cpp:34:25: note: suggested alternative: In file included from sir_munte.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ sir_munte.cpp:39:9: error: 'cout' was not declared in this scope cout<< "DA" ; // sirul contine atat parte crescatoare cat si descrescatoare ^ sir_munte.cpp:39:9: note: suggested alternative: In file included from sir_munte.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ sir_munte.cpp:41:9: error: 'cout' was not declared in this scope cout<< "NU" ; // nu are parte descrescatoare ^ sir_munte.cpp:41:9: note: suggested alternative: In file included from sir_munte.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 sir_munte 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ă.