0_0_30104912_4974.cpp: In function 'int main()':
0_0_30104912_4974.cpp:69:15: error: reference to 'tm' is ambiguous
QS.clear(); tm = 1; ans = 0;
^
0_0_30104912_4974.cpp:27:5: note: candidates are: int tm
int tm(0);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
from 0_0_30104912_4974.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note: struct tm
struct tm {
^
0_0_30104912_4974.cpp:78:70: error: reference to 'tm' is ambiguous
int L, R; /*cin >> L >> R;*/IN(L); IN(R); QS.push_back({ L - 1,R,tm,i ,-1 });
^
0_0_30104912_4974.cpp:27:5: note: candidates are: int tm
int tm(0);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
from 0_0_30104912_4974.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note: struct tm
struct tm {
^
0_0_30104912_4974.cpp:78:80: error: no matching function for call to 'std::vector<query>::push_back(<brace-enclosed initializer list>)'
int L, R; /*cin >> L >> R;*/IN(L); IN(R); QS.push_back({ L - 1,R,tm,i ,-1 });
^
0_0_30104912_4974.cpp:78:80: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_30104912_4974.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = query; _Alloc = std::allocator<query>; std::vector<_Tp, _Alloc>::value_type = query]
push_back(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const query&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = query; _Alloc = std::allocator<query>; std::vector<_Tp, _Alloc>::value_type = query]
push_back(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<query>::value_type&& {aka query&&}'
0_0_30104912_4974.cpp:82:40: error: reference to 'tm' is ambiguous
int pos; /*cin >> pos;*/IN(pos); P[tm++] = pos;
^
0_0_30104912_4974.cpp:27:5: note: candidates are: int tm
int tm(0);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
from 0_0_30104912_4974.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note: struct tm
struct tm {
^
|