Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1495 xf2-4说能过那都是假的
语言
C++
递交时间
2022-07-01 17:56:09
评测时间
2022-07-01 17:56:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes