Problem duckhunt41
User JoshJuice
Submission Time 2025-12-26 09:16:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt41.cpp: In function ‘int main()’:
duckhunt41.cpp:20:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | if(time != -1) continue;
| ^
duckhunt41.cpp:21:15: error: invalid conversion from ‘time_t (*)(time_t*) noexcept’ {aka ‘long int (*)(long int*) noexcept’} to ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} [-fpermissive]
21 | ans[v] = time + 1;
| ~~~~~^~~
| |
| time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept}