/ WHOJ /

记录详情

Compile Error

foo.cc:19:2: error: expected initializer before 'cin'
   19 |  cin>>N>>M;
      |  ^~~
foo.cc:21:2: error: expected unqualified-id before 'for'
   21 |  for(int i = 1; i <= M; i++)
      |  ^~~
foo.cc:21:17: error: 'i' does not name a type
   21 |  for(int i = 1; i <= M; i++)
      |                 ^
foo.cc:21:25: error: 'i' does not name a type
   21 |  for(int i = 1; i <= M; i++)
      |                         ^
foo.cc:25:6: error: expected constructor, destructor, or type conversion before '(' token
   25 |  sort(p+1,p+M+1,cmp);
      |      ^
foo.cc:26:2: error: expected unqualified-id before 'for'
   26 |  for(int i=N,j=M; i>=1; i--)
      |  ^~~
foo.cc:26:19: error: 'i' does not name a type
   26 |  for(int i=N,j=M; i>=1; i--)
      |                   ^
foo.cc:26:25: error: 'i' does not name a type
   26 |  for(int i=N,j=M; i>=1; i--)
      |                         ^
foo.cc:39:2: error: 'cout' does not name a type
   39 |  cout<<f[1]<<endl;
      |  ^~~~
foo.cc:40:2: error: expected unqualified-id before 'return'
   40 |  return 0;
      |  ^~~~~~
foo.cc:41:1: error: expected declaration before '}' token
   41 | }
      | ^
正在同步测试数据,请稍后
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1279 尼克的任务
题目数据
下载
语言
C++
递交时间
2022-07-10 19:28:14
评测时间
2022-07-10 19:28:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes