Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106718 | 李昊宇 | 15听到多少次掌声 | C++ | Compile Error | 0 MS | 0 KB | 443 | 2025-01-16 15:23:37 |
#include<iostream> using namespace std; int main(){ int a=0,b=0,c=0,d=0,e; for(int i=1;i<=40;i++){ flag=0; if(i%1==0 && a>10){ a++; e=1; } if(i%2==0 && b>10){ b++; e=1; } if(i%4==0 && c>10){ a++; e=1; } if(e=1){ d++; } } cout<<sum; return 0; }
Main.cc: In function 'int main()': Main.cc:6:9: error: 'flag' was not declared in this scope flag=0; ^ Main.cc:19:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(e=1){ ^ Main.cc:23:11: error: 'sum' was not declared in this scope cout<