| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122656 | 刘益梵 | 15听到多少次掌声 | C++ | Compile Error | 0 MS | 0 KB | 345 | 2025-06-21 11:52:32 |
#include<bits/stdc++.h> using namespace std; int main(){ int a=0,b=0,c=0,x=1,m=0; while(a<10 || b<10 || c<10){ bool v=false; if(a<10){ v=true; a++; } if(x%2==0 && b<10){ v=true; b++; } if(x%4==0 && c<10){ v=true; c++; } if(v){ m++ } x++; } cout<<m; return 0; }
Main.cc: In function 'int main()': Main.cc:21:3: error: expected ';' before '}' token } ^