Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2211 孙浚轩 14经过路口 C++ Compile Error 0 MS 0 KB 253 2023-12-16 18:30:03

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { double m=100000; int n=0; while(m>=5000) { if(m>50000) m*=(1-0.05) else m-=5000; n++; } cout<<n; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:9: error: expected ';' before 'else'
         else
         ^