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