#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 | #64904326 | Utilizator | |
| Fișier | nota.cpp | Dimensiune | 198 B |
| Data încărcării | 11 Iunie 2026, 09:45 | Scor/rezultat | Eroare de compilare |
nota.cpp:3:5: error: cannot declare ‘::main’ to be a global variable 3 | int main ( | ^~~~ nota.cpp:5:5: error: expected primary-expression before ‘long’ 5 | long a; | ^~~~ nota.cpp:5:5: error: expected ‘}’ before ‘long’ nota.cpp:4:1: note: to match this ‘{’ 4 | { | ^ nota.cpp:4:2: error: expected ‘)’ before ‘long’ 4 | { | ^ | ) 5 | long a; | ~~~~ nota.cpp:3:10: note: to match this ‘(’ 3 | int main ( | ^ nota.cpp:6:9: error: ‘cin’ does not name a type 6 | cin >> a; | ^~~ nota.cpp:7:5: error: expected unqualified-id before ‘if’ 7 | if a > 4; | ^~ nota.cpp:8:9: error: ‘cout’ does not name a type 8 | cout << "Promovat"; | ^~~~ nota.cpp:9:9: error: expected unqualified-id before ‘else’ 9 | else | ^~~~ nota.cpp:11:9: error: expected unqualified-id before ‘return’ 11 | return 0; | ^~~~~~ nota.cpp:12:1: error: expected declaration before ‘}’ token 12 | } | ^
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ă.