#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 | #39283138 | Utilizator | |
Fișier | sumaxxl.cpp | Dimensiune | 4.88 KB |
Data încărcării | 04 Noiembrie 2022, 12:47 | Scor / rezultat | Eroare de compilare |
sumaxxl.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ sumaxxl.cpp:1:7: error: 'System' has not been declared sumaxxl.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ sumaxxl.cpp:2:7: error: 'System' has not been declared sumaxxl.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ sumaxxl.cpp:2:13: error: expected unqualified-id before '.' token sumaxxl.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ sumaxxl.cpp:3:7: error: 'System' has not been declared sumaxxl.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ sumaxxl.cpp:3:13: error: expected unqualified-id before '.' token sumaxxl.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ sumaxxl.cpp:4:7: error: 'System' has not been declared sumaxxl.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ sumaxxl.cpp:4:13: error: expected unqualified-id before '.' token sumaxxl.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ sumaxxl.cpp:5:7: error: 'System' has not been declared sumaxxl.cpp:5:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ sumaxxl.cpp:5:13: error: expected unqualified-id before '.' token sumaxxl.cpp:6:7: error: expected nested-name-specifier before 'System' using System.IO; ^ sumaxxl.cpp:6:7: error: 'System' has not been declared sumaxxl.cpp:6:13: error: expected ';' before '.' token using System.IO; ^ sumaxxl.cpp:6:13: error: expected unqualified-id before '.' token sumaxxl.cpp:12:16: error: expected ':' before 'int' private int[] a; // aici retinem numarul ^ sumaxxl.cpp:12:19: error: expected unqualified-id before '[' token private int[] a; // aici retinem numarul ^ sumaxxl.cpp:13:16: error: expected ':' before 'int' private int n; // numarul de cifre ^ sumaxxl.cpp:14:16: error: expected ':' before 'int' private int N; //numarul maxim de cifre ^ sumaxxl.cpp:20:15: error: expected ':' before 'BigNumber' public BigNumber() ^ sumaxxl.cpp:27:15: error: expected ':' before 'BigNumber' public BigNumber(int x) ^ sumaxxl.cpp:40:15: error: expected ':' before 'BigNumber' public BigNumber(string fisIn) ^ sumaxxl.cpp:40:32: error: expected ')' before 'fisIn' public BigNumber(string fisIn) ^ sumaxxl.cpp:190:1: error: expected '}' at end of input } ^ sumaxxl.cpp: In constructor 'p46_BigNumber::BigNumber::BigNumber()': sumaxxl.cpp:22:17: error: 'Init' was not declared in this scope Init(); ^ sumaxxl.cpp:24:12: error: 'a' was not declared in this scope a = new int[N]; ^ sumaxxl.cpp: In constructor 'p46_BigNumber::BigNumber::BigNumber(int)': sumaxxl.cpp:29:17: error: 'Init' was not declared in this scope Init(); ^ sumaxxl.cpp:31:12: error: 'a' was not declared in this scope a = new int[N]; ^ sumaxxl.cpp: At global scope: sumaxxl.cpp:38:8: error: expected unqualified-id at end of input } ^ sumaxxl.cpp:38:8: error: expected '}' at end of input
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ă.