| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138766 | 田祥江 | 百钱买百鸡II | C++ | Compile Error | 0 MS | 0 KB | 344 | 2025-11-29 17:28:28 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a,b,c,d,t=1; scanf(a=0;a<=n/5;a++){ for(a=0;a<=n/5;a++){ for(b=0;b<=n/3;b++){ for(c=0;c<=n;c++){ if(a+b+c==n&&c%3==0&&a*5+b*3+c/3==n){ printf("%d:%d,%d,%d/n",t,a,b,c); t++; } } } } } return 0; }
Main.cc: In function 'int main()':
Main.cc:5:14: error: expected ')' before ';' token
scanf(a=0;a<=n/5;a++){
^
Main.cc:5:16: warning: statement has no effect [-Wunused-value]
scanf(a=0;a<=n/5;a++){
^
Main.cc:5:25: error: expected ';' before ')' token
scanf(a=0;a<=n/5;a++){
^
Main.cc:4:13: warning: unused variable 'b' [-Wunused-variable]
int n,a,b,c,d,t=1;
^
Main.cc:4:15: warning: unused variable 'c' [-Wunused-variable]
int n,a,b,c,d,t=1;
^
Main.cc:4:17: warning: unused variable 'd' [-Wunused-variable]
int n,a,b,c,d,t=1;
^
Main.cc:4:19: warning: unused variable 't' [-Wunused-variable]
int n,a,b,c,d,t=1;
^
Main.cc:18:1: error: expected '}' at end of input
}
^