Borderou de evaluare (job #788206)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Brățara (clasele 5/6) | Compilator | cpp-32 |
Rundă | lasm_26_09_2024_clasa10_11 | Status | evaluat |
Dată | 26 sept. 2024 15:42:58 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool unesc(long long int, long long int)':
main.cpp:6:50: error: declaration of 'int a' shadows a parameter
6 | int a, b, l=log10(b)+1;
| ^
main.cpp:5:30: note: 'long long int a' previously declared here
5 | bool unesc(long long a, long long b){bool x=false, y=false;
| ~~~~~~~~~~^
main.cpp:6:53: error: declaration of 'int b' shadows a parameter
6 | int a, b, l=log10(b)+1;
| ^
main.cpp:5:43: note: 'long long int b' previously declared here
5 | bool unesc(long long a, long long b){bool x=false, y=false;
| ~~~~~~~~~~^
main.cpp:5:51: warning: unused variable 'x' [-Wunused-variable]
5 | bool unesc(long long a, long long b){bool x=false, y=false;
| ^
main.cpp:5:60: warning: unused variable 'y' [-Wunused-variable]
5 | bool unesc(long long a, long long b){bool x=false, y=false;
| ^
main.cpp:9:81: warning: no return statement in function returning non-void [-Wreturn-type]
9 | }
| ^