Borderou de evaluare (job #3204241)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 16 februarie 2024 08:12:38
Problema Dtcsu Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:11: warning: overflow in conversion from 'int' to 'char' changes value from '2048' to ''\000'' [-Woverflow] 5 | #define Z 2048 | ^~~~ main.cpp:8:13: note: in expansion of macro 'Z' 8 | char b[Z],p=Z; | ^ main.cpp: In function 'char A()': main.cpp:13:15: warning: array subscript has type 'char' [-Wchar-subscripts] 13 | return b[p++]; | ~^~ main.cpp: In function 'long long int B()': main.cpp:17:9: error: 'c' was not declared in this scope 17 | for(c=A();!isdigit(c);c=A()); | ^ main.cpp:19:18: error: 'c' was not declared in this scope 19 | for(;isdigit(c);n=n*10+c-48,c=A()); | ^ Non zero exit status: 1

Ceva nu functioneaza?