| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76898 | 黄枳润 | 14经过路口 | C++ | Compile Error | 0 MS | 0 KB | 244 | 2024-06-04 18:49:56 |
#include<iostream> using namespace std; int main() { int i=100000,j; for(j=1;a<5000;j++){ if(a>50000){ a=a-a*%5; }else{ a=a-5000; } } cout<<j; return 0; }
Main.cc: In function 'int main()':
Main.cc:6:13: error: 'a' was not declared in this scope
for(j=1;a<5000;j++){
^
Main.cc:8:19: error: expected primary-expression before '%' token
a=a-a*%5;
^
Main.cc:5:9: warning: unused variable 'i' [-Wunused-variable]
int i=100000,j;
^