Problem swap
User PlayVoltz
Submission Time 2024-03-06 13:17:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swap.cpp: In function ‘void init(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’:
swap.cpp:54:23: error: request for member ‘begin’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept’ {aka ‘long int(long int*) noexcept’}
54 | tt.erase(unique(time.begin(), time.end()), time.end());
| ^~~~~
swap.cpp:54:37: error: request for member ‘end’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept’ {aka ‘long int(long int*) noexcept’}
54 | tt.erase(unique(time.begin(), time.end()), time.end());
| ^~~
swap.cpp:54:50: error: request for member ‘end’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept’ {aka ‘long int(long int*) noexcept’}
54 | tt.erase(unique(time.begin(), time.end()), time.end());
| ^~~
swap.cpp:55:18: error: request for member ‘size’ in ‘time’, w