foo.cc:85:5: error: conflicting declaration 'int s [100001]'
85 | int s[N],tag[N];
| ^
foo.cc:5:13: note: previous declaration as 'int s [100010]'
5 | int a[maxn],s[maxn],t[maxn];
| ^
foo.cc:85:10: error: conflicting declaration 'int tag [100001]'
85 | int s[N],tag[N];
| ^~~
foo.cc:6:5: note: previous declaration as 'int tag [400]'
6 | int tag[400];
| ^~~
foo.cc: In function 'void read(int&)':
foo.cc:90:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
90 | for(x=0; isdigit(ch); x=x*10+ch-'0',ch=getchar()); if(ok) x=-x;
| ^~~
foo.cc:90:56: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
90 | for(x=0; isdigit(ch); x=x*10+ch-'0',ch=getchar()); if(ok) x=-x;
| ^~
foo.cc: At global scope:
foo.cc:138:5: error: redefinition of 'int main()'
138 | int main()
| ^~~~
foo.cc:16:5: note: 'int main()' previously defined here
16 | int main()
| ^~~~
foo.cc: In function 'int main()':
foo.cc:19:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
19 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:23:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d",a+i);
| ~~~~~^~~~~~~~~~
foo.cc:32:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
32 | scanf("%d%d%d%d",&opt,&l,&r,&c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务