Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1915 吴奕希 11石头剪刀布 C++ Compile Error 0 MS 0 KB 500 2023-12-02 16:35:51

Tests(0/0):


Code:

# include<iostream> using namespace std; int main() { int a,b; cin>>a>>b; if(a>b) { if(a==2) { printf("winner:1"); } else { printf("winner:2"); } } elif(b>a) { if(b==2) { printf("winner:2"); } else { printf("winner:1"); } } else { printf("winner:none"); } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:18:13: error: 'elif' was not declared in this scope
     elif(b>a)
             ^
Main.cc:19:5: error: expected ';' before '{' token
     {
     ^
Main.cc:34:1: error: expected '}' at end of input
 }
 ^