foo.cc: In function 'int main()':
foo.cc:29:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
29 | scanf("%d %s",&n,Time+1);
| ~^ ~~
| | |
| int* long long int*
| %lld
foo.cc:35:15: warning: array subscript has type 'char' [-Wchar-subscripts]
35 | vis[jl[cnt]]=0,--cnt;
| ~~~~~~^
foo.cc:48:12: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | if(vis[c]&&!flag){
| ^
foo.cc:52:9: warning: array subscript has type 'char' [-Wchar-subscripts]
52 | vis[c]=1,jl[++cnt]=c;
| ^
foo.cc:29:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
29 | scanf("%d %s",&n,Time+1);
| ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:32:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
32 | scanf("\n%c",&c);
| ~~~~~^~~~~~~~~~~
foo.cc:47:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
47 | scanf(" %c",&c);
| ~~~~~^~~~~~~~~~
foo.cc:53:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
53 | scanf(" %c",&c);
| ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务