Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117927 刘珩宇 百钱买百鸡II C++ Compile Error 0 MS 0 KB 565 2025-04-20 19:12:29

Tests(0/0):


Code:

#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,d=0,n; cin>>n; for(x=0;x<=n/5;x++){ for(y=0;y<=n/3;y++){ for(z=0;z<=n/3;z++){ if(x+y+z*3=n&&x*5+y*3+k==n){ d++; cout<<d<<": "<<x<<","<<j<<","<<k*3<<endl; } } } } if(d==0){ cout<<"None"<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:35: error: 'k' was not declared in this scope
             if(x+y+z*3=n&&x*5+y*3+k==n){
                                   ^
Main.cc:14:40: error: 'j' was not declared in this scope
                 cout<