#2393
SumaXXL
Numim număr mare
un număr care conține prea multe cifre pentru a fi memorat în tipurile existente.
Se dau două numere mari. Calculați suma lor.
Problema | SumaXXL | Operații I/O |
sumaxxl.in /sumaxxl.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #22093854 | Utilizator | |
Fișier | sumaxxl.cpp | Dimensiune | 598 B |
Data încărcării | 25 Martie 2020, 13:24 | Scor / rezultat | Eroare de compilare |
sumaxxl.cpp:4:1: error: stray '\342' in program ifstream fin(„sumaxxl.in”); ^ sumaxxl.cpp:4:1: error: stray '\200' in program sumaxxl.cpp:4:1: error: stray '\236' in program sumaxxl.cpp:4:1: error: stray '\342' in program sumaxxl.cpp:4:1: error: stray '\200' in program sumaxxl.cpp:4:1: error: stray '\235' in program sumaxxl.cpp:5:1: error: stray '\342' in program ofstream fout(„sumaxxl.out”); ^ sumaxxl.cpp:5:1: error: stray '\200' in program sumaxxl.cpp:5:1: error: stray '\236' in program sumaxxl.cpp:5:1: error: stray '\342' in program sumaxxl.cpp:5:1: error: stray '\200' in program sumaxxl.cpp:5:1: error: stray '\235' in program sumaxxl.cpp:12:5: error: stray '\342' in program for(i=n; i>=1; i–-) ^ sumaxxl.cpp:12:5: error: stray '\200' in program sumaxxl.cpp:12:5: error: stray '\223' in program sumaxxl.cpp:15:5: error: stray '\342' in program for(i=m; i>=1; i–-) ^ sumaxxl.cpp:15:5: error: stray '\200' in program sumaxxl.cpp:15:5: error: stray '\223' in program sumaxxl.cpp:31:5: error: stray '\342' in program for(i=n; i>=1; i–-) ^ sumaxxl.cpp:31:5: error: stray '\200' in program sumaxxl.cpp:31:5: error: stray '\223' in program sumaxxl.cpp:4:17: error: 'sumaxxl' was not declared in this scope ifstream fin(„sumaxxl.in”); ^ sumaxxl.cpp:5:18: error: 'sumaxxl' was not declared in this scope ofstream fout(„sumaxxl.out”); ^ sumaxxl.cpp: In function 'int main()': sumaxxl.cpp:12:25: error: expected primary-expression before ')' token for(i=n; i>=1; i–-) ^ sumaxxl.cpp:15:25: error: expected primary-expression before ')' token for(i=m; i>=1; i–-) ^ sumaxxl.cpp:31:25: error: expected primary-expression before ')' token for(i=n; i>=1; i–-) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SumaXXL 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ă.