Author
anonymous
about 5 years ago
Language
C++
Compiler
gcc HEAD 10.0.1 20200304 (experimental)
Options
Warnings
Boost 1.72.0
C++2a(GNU)
no pedantic
Author
anonymous
about 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:4:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
4 | #define rep(i,n) for(lint (i)=0;(i)<lint(n);(i)++)
| ^
prog.cc:322:5: note: in expansion of macro 'rep'
322 | rep(i,q){
| ^~~
prog.cc: In instantiation of 'void dynamic_connectivity<T>::euler_tour_tree::push(dynamic_connectivity<T>::euler_tour_tree::np) [with T = std::tuple<>; dynamic_connectivity<T>::euler_tour_tree::np = dynamic_connectivity<std::tuple<> >::euler_tour_tree::node*]':
prog.cc:112:4: required from 'void dynamic_connectivity<T>::euler_tour_tree::splay(dynamic_connectivity<T>::euler_tour_tree::np) [with T = std::tuple<>; dynamic_connectivity<T>::euler_tour_tree::np = dynamic_connectivity<std::tuple<> >::euler_tour_tree::node*]'
prog.cc:201:4: required from 'void dynamic_connectivity<T>::euler_tour_tree::edge_connected_update(int, bool) [with T = std::tuple<>]'
prog.cc:245:56: required from 'bool dynamic_connectivity<T>::link(int, int) [with T = std::tuple<>]'
prog.cc:329:27: required from here
prog.cc:97:16: warning: unused parameter 't' [-Wunused-parameter]
97 | void push(np t){
| ~~~^
prog.cc: In instantiation of 'static constexpr T dynamic_connectivity<T>::euler_tour_tree::fn(T, T) [with T = std::tuple<>]':
prog.cc:89:25: required from 'dynamic_connectivity<T>::euler_tour_tree::node* dynamic_connectivity<T>::euler_tour_tree::update(dynamic_connectivity<T>::euler_tour_tree::np) [with T = std::tuple<>; dynamic_connectivity<T>::euler_tour_tree::np = dynamic_connectivity<std::tuple<> >::euler_tour_tree::node*]'
prog.cc:203:10: required from 'void dynamic_connectivity<T>::euler_tour_tree::edge_connected_update(int, bool) [with T = std::tuple<>]'
prog.cc:245:56: required from 'bool dynamic_connectivity<T>::link(int, int) [with T = std::tuple<>]'
prog.cc:329:27: required from here
prog.cc:134:31: warning: unused parameter 't' [-Wunused-parameter]
134 | constexpr static T fn(T s,T t){
| ~~^
Exit Code:
0