Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115742 刘佳宇 百钱买百鸡II C++ Compile Error 0 MS 0 KB 438 2025-04-04 10:10:04

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; bool flag=0; cin>>n; for(int x=0;x<=n/5;x++){ for(int y=0;y<=n/3;y++ ){ for(int z=0;z<=n;z++){ if(x*5+y*3+z/3.0==n&&x+y+z==n){ cout<<x<<" "<<y<<" "<<z<<endl; flag=1; } } } } if(b==0){ cout<<"None"; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:20:8: error: 'b' was not declared in this scope
     if(b==0){
        ^