Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129786 陈奕涵 百钱买百鸡II C++ Compile Error 0 MS 0 KB 422 2025-09-06 14:21:02

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int n,cnt=0; cin>>n; for(int i=0;i<=n/5;i++){ for(int j=0;j<=n/3;j++){ for(int k=0;k<=n/3;k++){ if(i+j+k*3==n&&5*i+3*j+k==n){ cnt++; cout<<cnt<<":"<<i<<","<<j<<","<<3*k<<endl; } } } } cout<< return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:21:5: error: expected primary-expression before 'return'
     return 0;
     ^