Problem | summit |
---|---|
User | Schzeey |
Submission Time | 2023-09-18 15:20:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
summit.cpp: In function ‘bool can_k(long long int, long long int, long long int)’:
summit.cpp:5:15: error: declaration of ‘long long int m’ shadows a parameter
5 | long long m = h;
| ^
summit.cpp:5:19: error: ‘h’ was not declared in this scope
5 | long long m = h;
| ^
summit.cpp:6:5: error: ‘i’ was not declared in this scope
6 | i = 0;
| ^
summit.cpp:8:14: error: expected ‘)’ before ‘h’
8 | if (k//(d+1) == 0)
| ~ ^
| )
9 | h -= k//(d+i);
| ~
summit.cpp:10:5: error: expected primary-expression before ‘}’ token
10 | }
| ^
summit.cpp: In function ‘long long int min_k(long long int, long long int, long long int, long long int)’:
summit.cpp:23:9: error: expected ‘,’ or ‘;’ before ‘if’
23 | if (can){
| ^~
summit.cpp:26:9: error: