foo.cc:14:15: warning: missing terminating ' character
   14 |     if(ch[j]=='R)
      |               ^
foo.cc:14:15: error: missing terminating ' character
   14 |     if(ch[j]=='R)
      |               ^~~
foo.cc: In function 'int main()':
foo.cc:15:5: error: expected primary-expression before '{' token
   15 |     {
      |     ^
foo.cc:14:15: error: expected ')' before '{' token
   14 |     if(ch[j]=='R)
      |       ~       ^
      |               )
   15 |     {
      |     ~          
foo.cc:20:3: error: expected primary-expression before '}' token
   20 |   }
      |   ^
foo.cc:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    7 |     scanf("%s",ch);
      |     ~~~~~^~~~~~~~~
   
  
    [Hydro](https://hydro.ac)提供评测服务