0_0_28888453_12413.cpp: In function 'void update1(int, int)':
0_0_28888453_12413.cpp:38:14: error: 'n' was not declared in this scope
while(i<=n)
^
0_0_28888453_12413.cpp: In function 'void update2(int, int)':
0_0_28888453_12413.cpp:46:14: error: 'n' was not declared in this scope
while(i<=n)
^
0_0_28888453_12413.cpp: In function 'int get(int)':
0_0_28888453_12413.cpp:83:35: error: 'sum' was not declared in this scope
if(sum1(mid-1)<xx&&sum(mid)>=xx)
^
0_0_28888453_12413.cpp: In function 'int main()':
0_0_28888453_12413.cpp:101:11: error: 'i' was not declared in this scope
e[i].x=x;e[i].y=y;e[i].z=z;
^
0_0_28888453_12413.cpp:121:26: error: no match for 'operator[]' (operand types are 'std::map<int, int>' and 'node')
second=get(mp[e[i]].z);
^
0_0_28888453_12413.cpp:121:26: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from 0_0_28888453_12413.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:491:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = int]
operator[](const key_type& __k)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:491:7: note: no known conversion for argument 1 from 'node' to 'const key_type& {aka const int&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:511:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = int]
operator[](key_type&& __k)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:511:7: note: no known conversion for argument 1 from 'node' to 'std::map<int, int>::key_type&& {aka int&&}'
0_0_28888453_12413.cpp:124:16: error: no match for 'operator+=' (operand types are 'long long int' and 'std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}')
ans+=
^
|