Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158550 林睿 输出较大的数 C++ Compile Error 0 MS 0 KB 185 2026-08-22 15:06:36

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a>b)cout<<"max="<<a; else if(a<b)cout<<"max="<<b; else break; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:10: error: break statement not within loop or switch
     else break;
          ^