| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143688 | 王峻熙 | 求三个数的最大值 | C++ | Compile Error | 0 MS | 0 KB | 203 | 2026-01-17 14:57:13 |
#include<iostream> using namespace std; int main(){ int x,y,z,max=0; cin>>x>>y>>z; if(x<y); max=y; } else{ max=x; } if(y<z){ max=z; } else{ max=y; } return 0; }
Main.cc: In function 'int main()':
Main.cc:4:11: warning: variable 'max' set but not used [-Wunused-but-set-variable]
int x,y,z,max=0;
^
Main.cc: At global scope:
Main.cc:9:1: error: expected unqualified-id before 'else'
else{
^
Main.cc:12:1: error: expected unqualified-id before 'if'
if(y