/ Vijos /

记录详情

Compile Error

foo.cc:23:3: error: expected unqualified-id before 'return'
 } return 0;
   ^~~~~~
foo.cc:24:1: error: expected declaration before '}' token
 }
 ^
foo.cc: In function 'int main()':
foo.cc:16:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for (int i=1;i<=10;i++) scanf("%d",&e[i]);
                          ~~~~~^~~~~~~~~~~~
foo.cc:17:44: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for (int i=1;i<=n;i++) scanf("%d",&p[i].w),p[i].d=i;
                         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1282 佳佳的魔法照片
语言
C++
递交时间
2021-11-17 12:53:08
评测时间
2021-11-17 12:53:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes