Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
61066 于正 07比较大小 C++ Compile Error 0 MS 0 KB 145 2023-11-26 13:29:36

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a b; cin>>a>>b; if(a>b){cout<<"a"; } else{cout<<"b"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:11: error: expected initializer before 'b'
     int a b;
           ^
Main.cc:5:7: error: 'a' was not declared in this scope
  cin>>a>>b;
       ^
Main.cc:5:10: error: 'b' was not declared in this scope
  cin>>a>>b;
          ^