| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64226 | 刘济玮 | 百钱买百鸡II | C++ | Compile Error | 0 MS | 0 KB | 424 | 2024-01-21 09:03:03 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int n; cin>>n; for(int gj=0;gj<=n/5;gj++){ for(int mj=0;mj<=n/3;mj++){ for(int jz=0;jz<=n;jz++){ if(gj+mj+jz==n&&gj*5+mj*3+jz/3==n&&jz%3==0){ printf("%d%d%d\n",gj,mj,jz); } } } } else if{ cout<<"None"; return 0; }
Main.cc: In function 'int main()':
Main.cc:16:5: error: 'else' without a previous 'if'
else if{
^
Main.cc:16:12: error: expected '(' before '{' token
else if{
^
Main.cc:19:1: error: expected '}' at end of input
}
^