Borderou de evaluare (job #722567)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Ouă (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 iun. 2023 12:56:58 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:35: error: expected initializer before 'cnt'
13 | int n, m, p, i, k, j, x, time cnt = 0, counter = 0, nr = 1;
| ^~~
main.cpp:18:33: warning: statement has no effect [-Wunused-value]
18 | v[i][j] == x;
| ~~~~~~~~^~~~
main.cpp:25:23: error: 'counter' was not declared in this scope
25 | while(counter < n)
| ^~~~~~~
main.cpp:29:33: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*)'} [-Wpointer-arith]
29 | time ++;
| ^~~~
main.cpp:29:33: error: lvalue required as increment operand
main.cpp:32:41: error: 'cnt' was not declared in this scope; did you mean 'int'?
32 | cnt ++;
| ^~~
| int