| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143698 | 8 | 求三个数的最大值 | C++ | Compile Error | 0 MS | 0 KB | 272 | 2026-01-17 15:14:49 |
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a>b){ if(a>c) max=a; }else{ max=c; } }else{ if(b>c){ max=b; }else{ max=c; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:8:12: error: overloaded function with no contextual type information
max=a;
^
Main.cc:10:12: error: overloaded function with no contextual type information
max=c;
^
Main.cc: At global scope:
Main.cc:12:6: error: expected unqualified-id before 'else'
}else{
^