Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
109609 陈治宸 14经过路口 C++ Compile Error 0 MS 0 KB 242 2025-02-09 19:19:56

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:11: error: 'Sleep' was not declared in this scope
  Sleep(500); 
           ^