/ WHOJ /

记录详情

Compile Error

foo.cc:7:6: error: expected initializer before 'a'
    7 | node a[400005];
      |      ^
foo.cc: In function 'int main()':
foo.cc:24:9: error: 'a' was not declared in this scope
   24 |    cin>>a[i].wz;
      |         ^
foo.cc:29:9: error: 'a' was not declared in this scope
   29 |    cin>>a[i].jz;
      |         ^
foo.cc:32:8: error: 'a' was not declared in this scope
   32 |   sort(a,a+2*n,cmp);
      |        ^
foo.cc:16:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   16 |  freopen("gem.in","r",stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:17:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   17 |  freopen("gem.out","w",stdout);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1423 宝石(文件IO)
题目数据
下载
语言
C++
递交时间
2022-07-30 13:15:36
评测时间
2022-07-30 13:15:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes