Borderou de evaluare (job #807491)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Punga (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 feb. 2025 19:43:18 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:9: error: expected unqualified-id before '__int128'
9 | typedef __int128 big_int; // Pentru a evita overflow la multiplicare
| ^~~~~~~~
main.cpp:12:6: error: variable or field 'readBigInt' declared void
12 | void readBigInt(big_int &num, istream &in) {
| ^~~~~~~~~~
main.cpp:12:17: error: 'big_int' was not declared in this scope; did you mean 'u_int'?
12 | void readBigInt(big_int &num, istream &in) {
| ^~~~~~~
| u_int
main.cpp:12:26: error: 'num' was not declared in this scope; did you mean 'enum'?
12 | void readBigInt(big_int &num, istream &in) {
| ^~~
| enum
main.cpp:12:39: error: expected primary-expression before '&' token
12 | void readBigInt(big_int &num, istream &in) {
| ^
main.cpp:12:40: error: 'in' was not declared in this scope; did you mean 'yn'?
12 | void readBigInt(big_int &num, istream &in) {
| ^~
| yn
main.cpp:22:6: error: variable or field 'printBigInt' declared void
22 | void printBigInt(big_int num, ostream &out) {
| ^~~~~~~~~~~
main.cpp:22:18: error: 'big_int' was not declared in this scope; did you mean 'u_int'?
22 | void printBigInt(big_int num, ostream &out) {
| ^~~~~~~
| u_int
main.cpp:22:39: error: expected primary-expression before '&' token
22 | void printBigInt(big_int num, ostream &out) {
| ^
main.cpp:22:40: error: 'out' was not declared in this scope
22 | void printBigInt(big_int num, ostream &out) {
| ^~~
main.cpp: In function 'int main()':
main.cpp:42:12: error: 'big_int' was not declared in this scope; did you mean 'u_int'?
42 | vector<big_int> K(T);
| ^~~~~~~
| u_int
main.cpp:42:19: error: template argument 1 is invalid
42 | vector<big_int> K(T);
| ^
main.cpp:42:19: error: template argument 2 is invalid
main.cpp:46:21: error: invalid types 'int[int]' for array subscript
46 | readBigInt(K[i], fin);
| ^
main.cpp:46:9: error: 'readBigInt' was not declared in this scope
46 | readBigInt(K[i], fin);
| ^~~~~~~~~~
main.cpp:50:16: error: expected ';' before 'K_i'