#354
Se dau n numere întregi. Calculaţi cel mai mare dintre cele n numere date.
| Problema | n_maxim | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64926466 | Utilizator | |
| Fișier | n_maxim.cpp | Dimensiune | 2.90 KB |
| Data încărcării | 15 Iunie 2026, 00:07 | Scor/rezultat | Eroare de compilare |
n_maxim.cpp:36:8: error: extended character → is not valid in an identifier 36 | 12 > 7 → maxim = 12 | ^ n_maxim.cpp:37:8: error: extended character → is not valid in an identifier 37 | 3 < 12 → rămâne 12 | ^ n_maxim.cpp:38:9: error: extended character → is not valid in an identifier 38 | 20 > 12 → maxim = 20 | ^ n_maxim.cpp:39:9: error: extended character → is not valid in an identifier 39 | 15 < 20 → rămâne 20 | ^ n_maxim.cpp:92:8: error: extended character → is not valid in an identifier 92 | 12 > 7 → rămâne 7 | ^ n_maxim.cpp:93:7: error: extended character → is not valid in an identifier 93 | 3 < 7 → minim = 3 | ^ n_maxim.cpp:94:8: error: extended character → is not valid in an identifier 94 | 20 > 3 → rămâne 3 | ^ n_maxim.cpp:95:8: error: extended character → is not valid in an identifier 95 | 15 > 3 → rămâne 3 | ^ n_maxim.cpp:26:1: error: ‘Exemplu’ does not name a type 26 | Exemplu | ^~~~~~~ n_maxim.cpp:60:5: error: redefinition of ‘int main()’ 60 | int main() { | ^~~~ n_maxim.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() { | ^~~~ n_maxim.cpp:82:1: error: ‘Exemplu’ does not name a type 82 | Exemplu | ^~~~~~~ n_maxim.cpp:105:1: error: ‘cel’ does not name a type 105 | cel mai mare număr (maxim); | ^~~ n_maxim.cpp:107:1: error: ‘apoi’ does not name a type 107 | apoi să calculăm: | ^~~~ n_maxim.cpp:114:5: error: redefinition of ‘int main()’ 114 | int main() { | ^~~~ n_maxim.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() { | ^~~~ n_maxim.cpp:139:1: error: ‘Exemplu’ does not name a type 139 | Exemplu | ^~~~~~~ n_maxim.cpp:172:5: error: redefinition of ‘int main()’ 172 | int main() { | ^~~~ n_maxim.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() { | ^~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema n_maxim 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ă.