Problem factorymachines
User Michael20110415
Submission Time 2026-06-25 15:13:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factorymachines.cpp: In function ‘int main()’:
factorymachines.cpp:10:23: error: ‘lo’ was not declared in this scope; did you mean ‘l’?
10 | long long mid=lo+(hi-lo)/2,cnt=0;
| ^~
| l
factorymachines.cpp:10:27: error: ‘hi’ was not declared in this scope; did you mean ‘h’?
10 | long long mid=lo+(hi-lo)/2,cnt=0;
| ^~
| h
factorymachines.cpp:12:13: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
12 | cnt+=mid/t[i];
| ^~~
| int
factorymachines.cpp:15:12: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
15 | if(cnt>=k) hi=mid;
| ^~~
| int
factorymachines.cpp:18:11: error: ‘lo’ was not declared in this scope; did you mean ‘l’?
18 | cout<<lo;
|