0_0_22129492_26124.cpp: In function 'int main()':
0_0_22129492_26124.cpp:126:5: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(0);
^
0_0_22129492_26124.cpp:132:9: error: 'vector' was not declared in this scope
vector<int> xs(n);
^
0_0_22129492_26124.cpp:132:9: note: suggested alternative:
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 0_0_22129492_26124.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^
0_0_22129492_26124.cpp:132:16: error: expected primary-expression before 'int'
vector<int> xs(n);
^
0_0_22129492_26124.cpp:135:13: error: 'xs' was not declared in this scope
xs[i - 1] = a[i];
^
0_0_22129492_26124.cpp:137:14: error: 'xs' was not declared in this scope
sort(xs.begin(), xs.end());
^
0_0_22129492_26124.cpp:137:34: error: 'sort' was not declared in this scope
sort(xs.begin(), xs.end());
^
0_0_22129492_26124.cpp:137:34: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_22129492_26124.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: 'std::sort'
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
0_0_22129492_26124.cpp:138:46: error: 'unique' was not declared in this scope
xs.resize(unique(xs.begin(), xs.end()) - xs.begin());
^
0_0_22129492_26124.cpp:138:46: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_22129492_26124.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1022:5: note: 'std::unique'
unique(_ForwardIterator __first, _ForwardIterator __last,
^
0_0_22129492_26124.cpp:140:58: error: 'lower_bound' was not declared in this scope
b[i] = lower_bound(xs.begin(), xs.end(), a[i]) - xs.begin() + 1;
^
0_0_22129492_26124.cpp:140:58: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_22129492_26124.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note: 'std::lower_bound'
lower_bound(_ForwardIterator __first, _ForwardIterator __last,
^
0_0_22129492_26124.cpp:151:21: error: expected primary-expression before '>' token
vector<Query> qs, qt;
^
0_0_22129492_26124.cpp:151:23: error: 'qs' was not declared in this scope
vector<Query> qs, qt;
^
0_0_22129492_26124.cpp:151:27: error: 'qt' was not declared in this scope
vector<Query> qs, qt;
^
0_0_22129492_26124.cpp:159:44: error: 'swap' was not declared in this scope
if(id[u] > id[v]) swap(u, v);
^
0_0_22129492_26124.cpp:159:44: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:62:0,
from 0_0_22129492_26124.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:829:5: note: 'std::swap'
swap(multiset<_Key, _Compare, _Alloc>& __x,
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_22129492_26124.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:160:5: note: 'std::__exception_ptr::swap'
swap(exception_ptr& __lhs, exception_ptr& __rhs)
^
0_0_22129492_26124.cpp:171:27: error: unable to deduce 'auto&&' from 'qs'
for(auto& q : qs) {
^
0_0_22129492_26124.cpp:177:53: error: '__gcd' was not declared in this scope
ans[q.id] = __gcd(sum[q.a], sum[q.b]);
^
0_0_22129492_26124.cpp:177:53: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_22129492_26124.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1229:5: note: 'std::__gcd'
__gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
^
0_0_22129492_26124.cpp:190:27: error: unable to deduce 'auto&&' from 'qt'
for(auto& q : qt) {
^
0_0_22129492_26124.cpp:195:53: error: '__gcd' was not declared in this scope
ans[q.id] = __gcd(sum[q.a], sum[q.b]);
^
0_0_22129492_26124.cpp:195:53: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_22129492_26124.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1229:5: note: 'std::__gcd'
__gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
^
|