Borderou de evaluare (job #706938)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Iepuraș2 (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 14 mar. 2023 17:01:57 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int sumcif(long long int)':
main.cpp:15:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
15 | sumcif+=n%10,n/=10;
| ~~~~~~^~~~~~
main.cpp:15:15: error: assignment of read-only location 'sumcif'
main.cpp:13:9: warning: unused variable 's' [-Wunused-variable]
13 | int s=0;
| ^
main.cpp:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
17 | }
| ^
main.cpp: In function 'int main()':
main.cpp:72:9: error: expected primary-expression before '}' token
72 | }
| ^