Problem | flooding2 |
---|---|
User | ZivTheONe |
Submission Time | 2025-03-24 16:58:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flooding2.cpp: In member function ‘void PURQ::updateTreeNode(int, int16_t)’:
flooding2.cpp:41:34: error: call of overloaded ‘abs(std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>::result_type)’ is ambiguous
41 | tree[p + N].first = abs( rng() );
| ^
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from flooding2.cpp:1:
/usr/include/stdlib.h:840:12: note: candidate: ‘int abs(int)’
840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
| ^~~
In file included from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from flooding2.cpp:1:
/usr/include/c