/ WHOJ /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1086 逆序对
题目数据
下载
语言
C++
递交时间
2023-12-16 10:55:10
评测时间
2023-12-16 10:55:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes