foo.cc: In function 'int main()':
foo.cc:30:13: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
30 | printf("%lld",ans);
| ~~~^ ~~~
| | |
| | int
| long long int
| %d
foo.cc:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%d\n",&n);
| ~~~~~^~~~~~~~~~~
foo.cc:8:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | for(int i=1;i<=n;i++)scanf("%c",&s),a[i]=s=='L'?-1:1;
| ~~~~~^~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务