Borderou de evaluare (job #601430)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Speciale (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 iul. 2021 15:46:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:30:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
30 | if(k == 9)
| ^~
main.cpp:32:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
32 | cout << m;
| ^~~~
main.cpp:42:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
42 | while(q == y || q == z && y < 6 && z > 4){
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
main.cpp:59:17: error: 'cnt' was not declared in this scope; did you mean 'cni'?
59 | cnt++;
| ^~~
| cni
main.cpp:66:17: error: 'cnt' was not declared in this scope; did you mean 'cni'?
66 | cnt++;
| ^~~
| cni
main.cpp:68:17: error: 'cnt' was not declared in this scope; did you mean 'cni'?
68 | cout << cnt;
| ^~~
| cni
main.cpp:9:64: warning: unused variable 'i' [-Wunused-variable]
9 | int n, k, a, b, p, m, ras = 0, cn, q, x = 0, y = 1, z = 9, i, ci = 0, pri = 0, cni = 0;
| ^
main.cpp:9:67: warning: unused variable 'ci' [-Wunused-variable]
9 | int n, k, a, b, p, m, ras = 0, cn, q, x = 0, y = 1, z = 9, i, ci = 0, pri = 0, cni = 0;
| ^~
main.cpp:9:75: warning: unused variable 'pri' [-Wunused-variable]
9 | int n, k, a, b, p, m, ras = 0, cn, q, x = 0, y = 1, z = 9, i, ci = 0, pri = 0, cni = 0;
| ^~~
main.cpp:9:84: warning: unused variable 'cni' [-Wunused-variable]
9 | int n, k, a, b, p, m, ras = 0, cn, q, x = 0, y = 1, z = 9, i, ci = 0, pri = 0, cni = 0;
| ^~~