/ WHOJ /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:30:14: error: 't' was not declared in this scope
   30 |  scanf("%d",&t);
      |              ^
foo.cc:33:21: error: 'x' was not declared in this scope
   33 |   scanf("%d%d%d%d",&x,&y,&z,&n);
      |                     ^
foo.cc:33:24: error: 'y' was not declared in this scope
   33 |   scanf("%d%d%d%d",&x,&y,&z,&n);
      |                        ^
foo.cc:33:27: error: 'z' was not declared in this scope
   33 |   scanf("%d%d%d%d",&x,&y,&z,&n);
      |                           ^
foo.cc:33:30: error: 'n' was not declared in this scope
   33 |   scanf("%d%d%d%d",&x,&y,&z,&n);
      |                              ^
foo.cc:35:7: error: 'i' was not declared in this scope
   35 |   for(i=1; i<=n; i++)
      |       ^
foo.cc:40:7: error: 'j' was not declared in this scope
   40 |   res[j++]=p[n]%10007;
      |       ^
foo.cc:41:7: error: 'i' was not declared in this scope
   41 |   for(i=0; i<j; i++)
      |       ^
foo.cc:44:2: error: 'cnturn' was not declared in this scope
   44 |  cnturn 0;
      |  ^~~~~~
foo.cc:28:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   28 |  freopen("plant.in","r",stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:29:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   29 |  freopen("plant.out","w",stdout);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Found 1 testcases.
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1457 神奇的植物(文件IO)
题目数据
下载
语言
C++
递交时间
2022-08-04 15:28:06
评测时间
2022-08-04 15:28:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes