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)提供评测服务