| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 145785 | 潘明泽 | 简单的分支结构 | C++ | Compile Error | 0 MS | 0 KB | 202 | 2026-01-25 19:02:25 |
#include<bits/stdc++.h> using namespace std; int n; int main(){ if(n>0){ cout<<"1"; }else if(n==0){ cout<<"0" }else{ cout<<"-1"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:9:5: error: expected ';' before '}' token
}else{
^