robots.cpp:75:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
75 | main()
| ^~~~
robots.cpp: In function 'void dfs(long long int, long long int)':
robots.cpp:95:5: error: 'in' was not declared in this scope; did you mean 'i'?
95 | in[x]=++dem;
| ^~
| i
robots.cpp:100:5: error: 'ou' was not declared in this scope; did you mean 'fou'?
100 | ou[x]=dem;
| ^~
| fou
robots.cpp: In member function 'void sub5::IT::upd(long long int, long long int, long long int, long long int, long long int, long long int)':
robots.cpp:132:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
132 | int mid=l+r>>1;
| ~^~
robots.cpp: In function 'void sub5::solve()':
robots.cpp:206:8: error: invalid types 'long long int[int]' for array subscript
206 | res[1]=dp[1][1][1].a;
| ^
robots.cpp:207:8: error: invalid types 'long long int[int]' for array subscript
207 | res[2]=dp[1][2][1].a;
| ^
robots.cpp:209:5: error: 'st' was not declared in this scope; did you mean 's9'?
209 | st.upd(1,1,n,s2,s2,inf);
| ^~
| s9
robots.cpp:212:22: error: 'in' was not declared in this scope; did you mean 'i'?
212 | st.upd(1,1,n,in[s2],ou[s2],c[s2].d);
| ^~
| i
robots.cpp:212:29: error: 'ou' was not declared in this scope; did you mean 'fou'?
212 | st.upd(1,1,n,in[s2],ou[s2],c[s2].d);
| ^~
| fou
robots.cpp:217:12: error: 'in' was not declared in this scope; did you mean 'i'?
217 | if(in[])
| ^~
| i
robots.cpp:217:15: error: expected primary-expression before ']' token
217 | if(in[])
| ^
robots.cpp:219:32: error: invalid types 'long long int[long long int]' for array subscript
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
robots.cpp:219:39: error: invalid types 'long long int[long long int]' for array subscript
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
robots.cpp:219:49: error: no matching function for call to 'get()'
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:223:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)'
223 | get(std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/10/utility:223:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:228:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)'
228 | get(std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/10/utility:228:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:233:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)'
233 | get(const std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/10/utility:233:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:238:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(const std::pair<_Tp1, _Tp2>&&)'
238 | get(const std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/10/utility:238:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:247:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(std::pair<_T1, _T2>&)'
247 | get(pair<_Tp, _Up>& __p) noexcept
| ^~~
/usr/include/c++/10/utility:247:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:252:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const std::pair<_T1, _T2>&)'
252 | get(const pair<_Tp, _Up>& __p) noexcept
| ^~~
/usr/include/c++/10/utility:252:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:257:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(std::pair<_T1, _T2>&&)'
257 | get(pair<_Tp, _Up>&& __p) noexcept
| ^~~
/usr/include/c++/10/utility:257:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:262:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const std::pair<_T1, _T2>&&)'
262 | get(const pair<_Tp, _Up>&& __p) noexcept
| ^~~
/usr/include/c++/10/utility:262:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:267:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(std::pair<_Up, _Tp>&)'
267 | get(pair<_Up, _Tp>& __p) noexcept
| ^~~
/usr/include/c++/10/utility:267:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:272:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const std::pair<_Up, _Tp>&)'
272 | get(const pair<_Up, _Tp>& __p) noexcept
| ^~~
/usr/include/c++/10/utility:272:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:277:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(std::pair<_Up, _Tp>&&)'
277 | get(pair<_Up, _Tp>&& __p) noexcept
| ^~~
/usr/include/c++/10/utility:277:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/utility:282:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const std::pair<_Up, _Tp>&&)'
282 | get(const pair<_Up, _Tp>&& __p) noexcept
| ^~~
/usr/include/c++/10/utility:282:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/tuple:39,
from /usr/include/c++/10/functional:54,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/array:334:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)'
334 | get(array<_Tp, _Nm>& __arr) noexcept
| ^~~
/usr/include/c++/10/array:334:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/tuple:39,
from /usr/include/c++/10/functional:54,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/array:343:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)'
343 | get(array<_Tp, _Nm>&& __arr) noexcept
| ^~~
/usr/include/c++/10/array:343:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/tuple:39,
from /usr/include/c++/10/functional:54,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/array:351:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)'
351 | get(const array<_Tp, _Nm>& __arr) noexcept
| ^~~
/usr/include/c++/10/array:351:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/tuple:39,
from /usr/include/c++/10/functional:54,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/array:360:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp&& std::get(const std::array<_Tp, _Nm>&&)'
360 | get(const array<_Tp, _Nm>&& __arr) noexcept
| ^~~
/usr/include/c++/10/array:360:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/functional:54,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/tuple:1294:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >& std::get(std::tuple<_UTypes ...>&)'
1294 | get(tuple<_Elements...>& __t) noexcept
| ^~~
/usr/include/c++/10/tuple:1294:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/functional:54,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/tuple:1300:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >& std::get(const std::tuple<_UTypes ...>&)'
1300 | get(const tuple<_Elements...>& __t) noexcept
| ^~~
/usr/include/c++/10/tuple:1300:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/functional:54,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/tuple:1306:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >&& std::get(std::tuple<_UTypes ...>&&)'
1306 | get(tuple<_Elements...>&& __t) noexcept
| ^~~
/usr/include/c++/10/tuple:1306:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/functional:54,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/tuple:1315:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >&& std::get(const std::tuple<_UTypes ...>&&)'
1315 | get(const tuple<_Elements...>&& __t) noexcept
| ^~~
/usr/include/c++/10/tuple:1315:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i]=res[i-1]-get();
| ^
In file included from /usr/include/c++/10/functional:54,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from robots.cpp:3:
/usr/include/c++/10/tuple:1338:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr _Tp& std::get(std::tuple<_UTypes ...>&)'
1338 | get(tuple<_Types...>& __t) noexcept
| ^~~
/usr/include/c++/10/tuple:1338:5: note: template argument deduction/substitution failed:
robots.cpp:219:49: note: candidate expects 1 argument, 0 provided
219 | for(int i=3; i<=n; i++) res[i