minerals.cpp:22:21: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
22 | const int oo = 1e18 + 7, mod = 1e9 + 7;
| ~~~~~^~~
minerals.cpp:33:12: error: 'int index [300005]' redeclared as different kind of entity
33 | int index[N];
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48,
from minerals.cpp:5:
/usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)'
61 | index (const char *__s, int __c) __THROW
| ^~~~~
minerals.cpp: In function 'void solve(int)':
minerals.cpp:40:14: error: 'Query' was not declared in this scope
40 | int temp = Query(i);
| ^~~~~
minerals.cpp:48:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | for(int j = 0; j < fi.size(); i++){
| ~~^~~~~~~~~~~
minerals.cpp:51:11: error: 'Query' was not declared in this scope
51 | lst = Query(fi[j]);
| ^~~~~
minerals.cpp:56:15: error: 'Query' was not declared in this scope
56 | int temp = Query(it);
| ^~~~~
minerals.cpp:57:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
57 | if(lst == temp) index[it] += (1LL << i);
| ^
minerals.cpp:63:35: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
63 | for(auto it : se) Answer(fi[index[it]], it);
| ^
minerals.cpp:63:20: error: 'Answer' was not declared in this scope
63 | for(auto it : se) Answer(fi[index[it]], it);
| ^~~~~~
minerals.cpp:46:7: warning: unused variable 'temp' [-Wunused-variable]
46 | bool temp = 1;
| ^~~~