Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146526 王晏林 15听到多少次掌声 C++ Compile Error 0 MS 0 KB 386 2026-01-29 11:53:10

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int t=0,c=1,qw=1,xm=1,xy=1; bool flag=false; while(qw+xn+xy<30){ t++; flag=false; if(qw<10){ flag=true; qw++; } if(xm<10&&xt%2==0){ flag=true; xm++; } if(xy<10&&xt%4==0){ flag=true; xy++; } if(flag){ c++; } } cout<<c; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:14: error: 'xn' was not declared in this scope
     while(qw+xn+xy<30){
              ^
Main.cc:13:13: error: 'xt' was not declared in this scope
   if(xm<10&&xt%2==0){
             ^
Main.cc:17:13: error: 'xt' was not declared in this scope
   if(xy<10&&xt%4==0){
             ^