| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136105 | 唐诗阳 | 百钱买百鸡II | C++ | Compile Error | 0 MS | 0 KB | 547 | 2025-11-09 15:38:55 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int x,y,z,N,a==1; cin>>N; for(int x=0;x<=n;x++){ y=(n-7*x)/4; z=6*x+3*y; if(x>=0 && y>=0 && z>=0 && x+y+z==n){ cout<<a<<": "<<x<<','<<y<<','<<z<<endl; a++; } } if(a==1) cout<<"Nome"; return 0; }
Main.cc: In function 'int main()':
Main.cc:8:18: error: expected initializer before '==' token
int x,y,z,N,a==1;
^
Main.cc:10:20: error: 'n' was not declared in this scope
for(int x=0;x<=n;x++){
^
Main.cc:14:19: error: 'a' was not declared in this scope
cout<