0_0_36226116_12147.cpp:14:25: error: 'pos' does not name a type
bool operator < (const pos a) const {
^
0_0_36226116_12147.cpp: In member function 'bool node::operator<(int) const':
0_0_36226116_12147.cpp:15:18: error: request for member 'x' in 'a', which is of non-class type 'const int'
return (x == a.x) ? ((y == a.y) ? z < a.z : y < a.y) : x < a.x;
^
0_0_36226116_12147.cpp:15:32: error: request for member 'y' in 'a', which is of non-class type 'const int'
return (x == a.x) ? ((y == a.y) ? z < a.z : y < a.y) : x < a.x;
^
0_0_36226116_12147.cpp:15:43: error: request for member 'z' in 'a', which is of non-class type 'const int'
return (x == a.x) ? ((y == a.y) ? z < a.z : y < a.y) : x < a.x;
^
0_0_36226116_12147.cpp:15:53: error: request for member 'y' in 'a', which is of non-class type 'const int'
return (x == a.x) ? ((y == a.y) ? z < a.z : y < a.y) : x < a.x;
^
0_0_36226116_12147.cpp:15:64: error: request for member 'x' in 'a', which is of non-class type 'const int'
return (x == a.x) ? ((y == a.y) ? z < a.z : y < a.y) : x < a.x;
^
0_0_36226116_12147.cpp: At global scope:
0_0_36226116_12147.cpp:24:8: error: 'M' was not declared in this scope
pii tr[M];
^
0_0_36226116_12147.cpp: In function 'void insert(int, std::pair<int, int>)':
0_0_36226116_12147.cpp:26:41: error: 'k' was not declared in this scope
void insert(int x, pii val){ for(; x <= k; x += lowbit(x)) update(tr[x], val); return; }
^
0_0_36226116_12147.cpp:26:67: error: 'tr' was not declared in this scope
void insert(int x, pii val){ for(; x <= k; x += lowbit(x)) update(tr[x], val); return; }
^
0_0_36226116_12147.cpp: In function 'node query(int)':
0_0_36226116_12147.cpp:27:31: error: conversion from 'int' to non-scalar type 'node' requested
node query(int x){ node ret = 0; for(; x; x -= lowbit(x)) update(ret, tr[x]); return ret; }
^
0_0_36226116_12147.cpp:27:71: error: 'tr' was not declared in this scope
node query(int x){ node ret = 0; for(; x; x -= lowbit(x)) update(ret, tr[x]); return ret; }
^
0_0_36226116_12147.cpp: In function 'void cdq(int, int)':
0_0_36226116_12147.cpp:37:28: error: 'struct node' has no member named 'val'
insert(flo[l].z, flo[l].val);
^
0_0_36226116_12147.cpp:42:4: error: 'ans' was not declared in this scope
ans[flo[r].id] += query(flo[r].z);
^
0_0_36226116_12147.cpp:42:15: error: 'struct node' has no member named 'id'
ans[flo[r].id] += query(flo[r].z);
^
0_0_36226116_12147.cpp:47:28: error: 'struct node' has no member named 'val'
insert(flo[i].z, -flo[i].val);
^
0_0_36226116_12147.cpp: In function 'int main()':
0_0_36226116_12147.cpp:58:61: error: 'struct node' has no member named 'val'
scanf("%d%d%d", &flo[i].x, &flo[i].y, &flo[i].z), flo[i].val = 1;
^
0_0_36226116_12147.cpp:61:30: error: 'struct node' has no member named 'id'
flo[++m] = flo[i]; flo[m].id = m;
^
0_0_36226116_12147.cpp:64:12: error: 'struct node' has no member named 'val'
flo[m].val++, j++;
^
0_0_36226116_12147.cpp:65:4: error: 'tot' was not declared in this scope
tot[m] = flo[m].val;
^
0_0_36226116_12147.cpp:65:20: error: 'struct node' has no member named 'val'
tot[m] = flo[m].val;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36226116_12147.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_less_iter::operator()(_Iterator1, _Iterator2) const [with _Iterator1 = node*; _Iterator2 = node*]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1846:27: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4685:72: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = node*]'
0_0_36226116_12147.cpp:59:28: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:42:23: error: no match for 'operator<' (operand types are 'node' and 'node')
{ return *__it1 < *__it2; }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:42:23: note: candidates are:
0_0_36226116_12147.cpp:14:7: note: bool node::operator<(int) const
bool operator < (const pos a) const {
^
0_0_36226116_12147.cpp:14:7: note: no known conversion for argument 1 from 'node' to 'int'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36226116_12147.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:837:5: note: template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:837:5: note: template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36226116_12147.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:42:23: note: 'node' is not derived from 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>'
{ return *__it1 < *__it2; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36226116_12147.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:844:5: note: template<class _Iterator, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cx
|