Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151788 张蔚林 14经过路口 C++ Compile Error 0 MS 0 KB 218 2026-04-19 10:50:32

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int i,n==100000; for(i=1;;i++){ if(n>500000){ n=n-(0.05*n); } esle{ n=n-50000; } if(n<5000){ cout<<i; break; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:9: error: expected initializer before '==' token
  int i,n==100000;
         ^
Main.cc:7:5: error: 'n' was not declared in this scope
  if(n>500000){
     ^
Main.cc:10:2: error: 'esle' was not declared in this scope
  esle{
  ^
Main.cc:13:5: error: 'n' was not declared in this scope
  if(n<5000){
     ^