#832
Nota
Fiind dată nota unui elev să se afișeze dacă acesta este corigent sau promovat.
Problema | Nota | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53738114 | Utilizator | |
Fișier | nota.cpp | Dimensiune | 172 B |
Data încărcării | 10 Noiembrie 2024, 13:48 | Scor / rezultat | Eroare de compilare |
nota.cpp: In function 'int main()': nota.cpp:5:1: error: 'cin' was not declared in this scope cin>>n; ^ nota.cpp:5:1: note: suggested alternative: In file included from nota.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ nota.cpp:7:5: error: 'cout' was not declared in this scope cout<<"Promovat"<<endl; ^ nota.cpp:7:5: note: suggested alternative: In file included from nota.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ nota.cpp:7:23: error: 'endl' was not declared in this scope cout<<"Promovat"<<endl; ^ nota.cpp:7:23: note: suggested alternative: In file included from /usr/include/c++/4.8/iostream:39:0, from nota.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: 'std::endl' endl(basic_ostream<_CharT, _Traits>& __os) ^ nota.cpp:9:9: error: 'cout' was not declared in this scope cout<<"Corigent"<<enbl; ^ nota.cpp:9:9: note: suggested alternative: In file included from nota.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ nota.cpp:9:27: error: 'enbl' was not declared in this scope cout<<"Corigent"<<enbl; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Nota 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ă.