#1
sum
Să se scrie un program care citeşte din fişier două numere întregi şi determină suma lor.
Problema | sum | Operații I/O |
sum.in /sum.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53149719 | Utilizator | |
Fișier | sum.cpp | Dimensiune | 6.11 KB |
Data încărcării | 19 Octombrie 2024, 10:25 | Scor / rezultat | Eroare de compilare |
sum.cpp:36:0: warning: ignoring #pragma region constructors [-Wunknown-pragmas] #pragma region constructors ^ sum.cpp:77:0: warning: ignoring #pragma endregion [-Wunknown-pragmas] #pragma endregion ^ sum.cpp:78:0: warning: ignoring #pragma region operators [-Wunknown-pragmas] #pragma region operators ^ sum.cpp:200:0: warning: ignoring #pragma endregion [-Wunknown-pragmas] #pragma endregion ^ sum.cpp: In member function 'char* LongLongLong::toString()': sum.cpp:17:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] return "0"; ^ sum.cpp:33:18: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] s[_size] = NULL; ^ sum.cpp: In member function 'LongLongLong LongLongLong::operator+(LongLongLong)': sum.cpp:109:54: error: 'memccpy' was not declared in this scope memccpy(s.arr,arr,sizeof(long long),arrLength); ^ sum.cpp: In member function 'LongLongLong LongLongLong::operator+(int)': sum.cpp:138:54: error: 'memccpy' was not declared in this scope memccpy(s.arr,arr,sizeof(long long),arrLength); ^ sum.cpp: In member function 'LongLongLong LongLongLong::operator-(LongLongLong)': sum.cpp:166:54: error: 'memccpy' was not declared in this scope memccpy(s.arr,arr,sizeof(long long),arrLength); ^ sum.cpp: In member function 'LongLongLong LongLongLong::operator-(int)': sum.cpp:185:54: error: 'memccpy' was not declared in this scope memccpy(s.arr,arr,sizeof(long long),arrLength); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema sum 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ă.