#1125
Se dau n numere naturale, scrise sub forma \( a_{1}^{b_1} + a_{2}^{b_2} + \cdots + a_{m}^{b_m} \). Să se afle dacă numerele pot fi reprezentate pe 8 octeti, fără semn.
| Problema | Overflow2 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 1.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64248386 | Utilizator | |
| Fișier | overflow2.cpp | Dimensiune | 1020 B |
| Data încărcării | 25 Aprilie 2026, 16:55 | Scor/rezultat | Eroare de compilare |
overflow2.cpp: In function ‘int main()’: overflow2.cpp:39:29: error: expected ‘)’ before ‘;’ token 39 | else (a_la_b = 1;) | ~ ^ | ) overflow2.cpp:39:13: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 39 | else (a_la_b = 1;) | ^~~~ overflow2.cpp:39:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 39 | else (a_la_b = 1;) | ^ overflow2.cpp:39:30: error: expected primary-expression before ‘)’ token overflow2.cpp:42:13: error: ‘else’ without a previous ‘if’ 42 | else {overflow = true;} | ^~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Overflow2 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ă.