Problem | boxispull |
---|---|
User | horse3903 |
Submission Time | 2023-04-18 14:43:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
boxispull.cpp: In function ‘int main()’:
boxispull.cpp:10:8: error: assignment of function ‘time_t time(time_t*)’
10 | time = abs(y2-y1) + abs(x2-x1);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
boxispull.cpp:11:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if (time == 1){
| ^
boxispull.cpp:13:3: error: expected ‘}’ before ‘else’
13 | else{
| ^~~~
boxispull.cpp:11:17: note: to match this ‘{’
11 | if (time == 1){
| ^
boxispull.cpp:14:13: error: invalid operands of types ‘int’ and ‘time_t(time_t*) noexcept’ {aka ‘long int(long int*) noexcept’} to binary ‘operator*’
14 | cout << 2*time;
| ~^~~~~
| | |
| | time_t(time_t*) noexcept {aka long int(long int*) noexcept}
| int