Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
143712 8 求三个数的最大值 C++ Compile Error 0 MS 0 KB 512 2026-01-17 15:31:45

Tests(0/0):


Code:

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


Run Info:

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