foo.cc: In function 'int main()':
foo.cc:6:20: error: expected ';' before 'int'
6 | cout.tie(0)
| ^
| ;
7 | int n,cnt=0;
| ~~~
foo.cc:8:14: error: 'n' was not declared in this scope; did you mean 'yn'?
8 | cin>>n;
| ^
| yn
foo.cc:11:22: error: 'a' was not declared in this scope
11 | cin>>a[i];
| ^
foo.cc:15:28: error: 'a' was not declared in this scope
15 | if(a[i]>a[j]) cnt++;
| ^
foo.cc:15:39: error: 'cnt' was not declared in this scope; did you mean 'int'?
15 | if(a[i]>a[j]) cnt++;
| ^~~
| int
foo.cc:18:15: error: 'cnt' was not declared in this scope; did you mean 'int'?
18 | cout<<cnt<<endl;
| ^~~
| int
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务