Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157403 余建成 百钱买百鸡II C++ Compile Error 0 MS 0 KB 310 2026-07-23 14:18:01

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n,f=0; cin>>n; for(int x=0;x<=n/5;x++){ for(int y=0;y<=n/3;n++){ for(int z=0;z<=n/3;n++){ if(x+y+z==n&&5*x+3*y+z==n){ f++; cout<<f<<":"<<g<<","<<3*x<<endl; } } } } if(f==0)cout<<"None"<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:20: error: 'g' was not declared in this scope
      cout<