Borderou de evaluare (job #640181)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Poziții (clasa a 5-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 12 mar. 2022 11:06:31 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:7:24: error: expected initializer before '++' token
7 | int n,a,i,poz=1,cnt++;
| ^~
main.cpp:12:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
12 | cnt++;
| ^~~
| int
main.cpp:15:11: error: 'cnt' was not declared in this scope; did you mean 'int'?
15 | cout<<cnt;
| ^~~
| int