Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
94255 倪士燊 百钱买百鸡II C++ Compile Error 0 MS 0 KB 369 2024-10-20 10:09:46

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int n,a,b,c,x=1; int main(){ cin >> a; for(int a=0;a<=n/5;a++) { for(int b=0;b<=n/3;b++) { for(int c=0;c<=n;c++) { if(a+b+c=100&&a*5+b*3+c+(1.0/3)==100) { printf("%d: %d,%d,%d\n",a,b,c,x); x++ } } } } if(c==1) cout<< "None"; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:14: error: lvalue required as left operand of assignment
      if(a+b+c=100&&a*5+b*3+c+(1.0/3)==100)
              ^
Main.cc:16:12: error: expected ';' before '}' token
            }
            ^