Borderou de evaluare (job #773219)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Suma cifrelor unui număr (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 apr. 2024 19:18:11 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int sum(long long int)':
main.cpp:10:13: warning: unused variable 'nr' [-Wunused-variable]
10 | int nr = n % 10;
| ^~
main.cpp:14:9: error: return-statement with no value, in function returning 'long long int' [-fpermissive]
14 | return;
| ^~~~~~