#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 | #64564274 | Utilizator | |
| Fișier | nota.cpp | Dimensiune | 192 B |
| Data încărcării | 14 Mai 2026, 14:28 | Scor/rezultat | Eroare de compilare |
nota.cpp: In function ‘int main()’: nota.cpp:10:29: error: expected ‘)’ before ‘;’ token 10 | ( cout << "promovat";) | ~ ^ | ) nota.cpp:9:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 9 | if(n>=5) | ^~ nota.cpp:10:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 10 | ( cout << "promovat";) | ^ nota.cpp:10:30: error: expected primary-expression before ‘)’ token nota.cpp:11:32: error: expected primary-expression before ‘)’ token 11 | else (cout ,, "corigent"; ) | ^
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ă.