| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75288 | 邓昊源 | 十进制转二进制 | C++ | Compile Error | 0 MS | 0 KB | 205 | 2024-05-26 16:12:02 |
#include<bits/stdc++.h> using namespace std; int main(){ int x; cin >> x; if(x!=0){ for(int i = 0;i < x;x++){ x = x/2; cout << x; }else{ return 0; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:12:4: error: expected '}' before 'else'
}else{
^
Main.cc: At global scope:
Main.cc:16:2: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:17:1: error: expected declaration before '}' token
}
^