Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2210 | 孙浚轩 | 14经过路口 | C++ | Compile Error | 0 MS | 0 KB | 240 | 2023-12-16 18:28:58 |
#include<iostream> using namespace std; int main() { int m=100000,n=0; while(m>=5000) { if(m>50000) m*=(1-0.05) else m-=5000; n++; } cout<<n; return 0; }
Main.cc: In function 'int main()': Main.cc:10:9: error: expected ';' before 'else' else ^