Problem | swap |
---|---|
User | PlayVoltz |
Submission Time | 2024-03-06 13:16:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swap.cpp:28:13: error: ‘std::vector<int> time’ redeclared as different kind of entity
28 | vector<int> time;
| ^~~~
In file included from /usr/include/pthread.h:23,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/ios_base.h:39,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from swap.cpp:2:
/usr/include/time.h:75:15: note: previous declaration ‘time_t time(time_t*)’
75 | extern time_t time (time_t *__timer) __THROW;
| ^~~~
swap.cpp: In function ‘void merge(int, int, int)’:
swap.cpp:42:62: error: reference to ‘end’ is ambiguous
42 | else if (