Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77792 夏梓瑞 输出较大的数 C++ Compile Error 0 MS 0 KB 177 2024-06-15 13:28:36

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:5: error: 'eles' was not declared in this scope
     eles{
     ^
Main.cc: At global scope:
Main.cc:10:1: error: expected unqualified-id before 'return'
 return 0; 
 ^
Main.cc:11:1: error: expected declaration before '}' token
 } 
 ^