preokret.cpp:5:13: error: 'N' was not declared in this scope
5 | int ans,cnt[N];
| ^
preokret.cpp: In function 'int main()':
preokret.cpp:13:3: error: 'cnt' was not declared in this scope; did you mean 'int'?
13 | cnt[j]++;
| ^~~
| int
preokret.cpp:19:3: error: 'cnt' was not declared in this scope; did you mean 'int'?
19 | cnt[j]--;
| ^~~
| int
preokret.cpp:24:8: error: 'cnt' was not declared in this scope; did you mean 'int'?
24 | now+=cnt[i];
| ^~~
| int
preokret.cpp:9:14: warning: unused variable 'k' [-Wunused-variable]
9 | int n,m,i,j,k;
| ^