Compile Error

foo.cc: In function 'int main()':
foo.cc:7:19: error: 'g' was not declared in this scope
    7 |         for(int i=g;i<n;i++)
      |                   ^
foo.cc:10:70: error: expression cannot be used as a function
   10 |                 if((s1[0]=='R'&&s2[0]=='S')||(s1[0]=='P'&&s2[0]=='R')(s1[0]=='S'&&s2[0]=='P'))
      |                                              ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:13:42: error: expected ';' before ':' token
   13 |                         cout<<"Tie"<<endl:
      |                                          ^
      |                                          ;
foo.cc:15:9: error: 'else' without a previous 'if'
   15 |         else
      |         ^~~~
foo.cc: At global scope:
foo.cc:19:1: error: expected unqualified-id before 'return'
   19 | return 0;
      | ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1987 1.7.4石头剪子布
语言
C++
递交时间
2024-01-06 11:06:26
评测时间
2024-01-06 11:06:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes