Problem log
User boaznumberd5555
Submission Time 2024-11-19 20:09:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

log.cpp: In function ‘int32_t main()’:
log.cpp:9:13: error: expected primary-expression before ‘long’
9 | if((long long mid)*mid/2+mid/2>=n+1){
| ^~~~
log.cpp:9:13: error: expected ‘)’ before ‘long’
9 | if((long long mid)*mid/2+mid/2>=n+1){
| ~^~~~
| )
log.cpp:11:10: error: expected ‘)’ before ‘else’
11 | }
| ^
| )
12 | else{
| ~~~~
log.cpp:9:11: note: to match this ‘(’
9 | if((long long mid)*mid/2+mid/2>=n+1){
| ^
log.cpp:15:5: error: expected primary-expression before ‘}’ token
15 | }
| ^