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