Problem hackthectf
User PlayVoltz
Submission Time 2023-11-24 16:58:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hackthectf.cpp: In function ‘int32_t main()’:
hackthectf.cpp:34:19: error: overloaded function with no contextual type information
34 | int mid = count=0, l=-1;
| ^
hackthectf.cpp:35:13: error: conflicting declaration ‘long long int mid’
35 | long long mid = (low+high)>>1, sum=0;
| ^~~
hackthectf.cpp:34:7: note: previous declaration as ‘int mid’
34 | int mid = count=0, l=-1;
| ^~~
hackthectf.cpp:38:11: error: ‘l’ was not declared in this scope
38 | while (l+1<r){
| ^
hackthectf.cpp:43:13: error: ‘l’ was not declared in this scope
43 | count+=1+l;
| ^
hackthectf.cpp:46:12: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<=’
46 | if (count<=k)high = mid, ans=sum+(k-count)*high;
| ~~~~~^~~
hackthectf.cpp:46:38: error: invalid ope