| Problem | roadsideadverts |
|---|---|
| User | pmn |
| Submission Time | 2025-02-10 12:37:16 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
roadsideadverts.cpp: In member function ‘void SparseTable<T>::init(std::vector<_Tp>, std::vector<_Tp>)’:
roadsideadverts.cpp:32:13: error: there are no arguments to ‘__bit_width’ that depend on a template parameter, so a declaration of ‘__bit_width’ must be available [-fpermissive]
32 | m = __bit_width(n);
| ^~~~~~~~~~~
roadsideadverts.cpp:32:13: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
roadsideadverts.cpp: In member function ‘Entry SparseTable<T>::rmq(int, int)’:
roadsideadverts.cpp:44:17: error: there are no arguments to ‘__bit_width’ that depend on a template parameter, so a declaration of ‘__bit_width’ must be available [-fpermissive]
44 | int k = __bit_width(r - l + 1) - 1;
| ^~~~~~~~~~~
roadsideadverts.cpp: In member function ‘Entry SparseTable<T>::query(int, int)’:
roadsideadverts.c