Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145088 于墨轩 求三个数的最大值 C++ Compile Error 0 MS 0 KB 325 2026-01-25 08:28:15

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:17:1: error: expected '}' at end of input
 }
 ^
Main.cc:17:1: error: expected '}' at end of input
Main.cc:17:1: error: expected '}' at end of input
Main.cc:17:1: error: expected '}' at end of input