/ phigros /

记录详情

Compile Error

foo.cc:8:4: error: 'MAXN' was not declared in this scope
    8 | }a[MAXN];
      |    ^~~~
foo.cc: In function 'int main()':
foo.cc:19:22: error: 'a' was not declared in this scope
   19 |                 cin>>a[i].pre;
      |                      ^
foo.cc:22:14: error: 'a' was not declared in this scope
   22 |         sort(a+1,a+n+1,cp);
      |              ^
foo.cc:34:36: error: 'cmp' was not declared in this scope; did you mean 'cp'?
   34 |                                 if(cmp(a[j],a[j-1]))
      |                                    ^~~
      |                                    cp
foo.cc:41:36: error: 'cmp' was not declared in this scope; did you mean 'cp'?
   41 |                                 if(cmp(a[j],a[j-1]))
      |                                    ^~~
      |                                    cp
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1044 插入排序
语言
C++
递交时间
2023-07-23 18:09:08
评测时间
2023-07-23 18:09:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes