| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146522 | 曾钰涵 | 15相同数的次数 | C++ | Compile Error | 0 MS | 0 KB | 356 | 2026-01-29 11:46:05 |
#include<iostream> using namespace std; int main(){ int t=0,c=1,xe=1,ct=1,xc=1; bool flag=0; while(xe+ct+xc<30) { t++; flag=false; if(xe==21) xt=1; xl++; if(xl==31) xl=1; if(xt==xl) count++; n++; } cout<<c; return 0; }
Main.cc: In function 'int main()':
Main.cc:11:11: error: 'xt' was not declared in this scope
xt=1;
^
Main.cc:12:9: error: 'xl' was not declared in this scope
xl++;
^
Main.cc:15:12: error: 'xt' was not declared in this scope
if(xt==xl)
^
Main.cc:16:14: error: 'count' was not declared in this scope
count++;
^
Main.cc:17:9: error: 'n' was not declared in this scope
n++;
^