#832
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 | #64928164 | Utilizator | |
| Fișier | nota.cpp | Dimensiune | 164 B |
| Data încărcării | 15 Iunie 2026, 13:28 | Scor/rezultat | Eroare de compilare |
nota.cpp: In function ‘int main()’: nota.cpp:5:5: error: ‘cin’ was not declared in this scope 5 | cin >> n; | ^~~ nota.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 | using namespace std; nota.cpp:7:5: error: ‘cout’ was not declared in this scope 7 | cout << "promovat"; | ^~~~ nota.cpp:7:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? nota.cpp:9:5: error: ‘cout’ was not declared in this scope 9 | cout << "corigent" << endl; | ^~~~ nota.cpp:9:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? nota.cpp:9:27: error: ‘endl’ was not declared in this scope 9 | cout << "corigent" << endl; | ^~~~ nota.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’? +++ |+#include <ostream> 1 | using namespace std;
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ă.