burza.cpp:10: warning: "FOR" redefined
10 | #define FOR( j , n ) for( int j = 0 ; j < n ; j ++ )
|
burza.cpp:9: note: this is the location of the previous definition
9 | #define FOR( i , n ) for( int i = 0 ; i < n ; i ++ )
|
burza.cpp:11: warning: "FOR" redefined
11 | #define FOR( k , n ) for( int k = 0 ; k < n ; k ++ )
|
burza.cpp:10: note: this is the location of the previous definition
10 | #define FOR( j , n ) for( int j = 0 ; j < n ; j ++ )
|
burza.cpp: In function 'void dfs(long long int, long long int, long long int)':
burza.cpp:11:41: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | #define FOR( k , n ) for( int k = 0 ; k < n ; k ++ )
......
31 | FOR( i , v[ node ].size() ){
| ~~~~~~~~~~~~~~~~~~~~
burza.cpp:31:2: note: in expansion of macro 'FOR'
31 | FOR( i , v[ node ].size() ){
| ^~~
burza.cpp:11:41: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | #define FOR( k , n ) for( int k = 0 ; k < n ; k ++ )
......
37 | FOR( j , children[ son ].size() ) children[ node ].pb( children[ son ][ j ] ) ;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
burza.cpp:37:3: note: in expansion of macro 'FOR'
37 | FOR( j , children[ son ].size() ) children[ node ].pb( children[ son ][ j ] ) ;
| ^~~
burza.cpp:27:6: warning: unused variable 'cnt' [-Wunused-variable]
27 | int cnt = 0 ;
| ^~~
burza.cpp: In function 'int main()':
burza.cpp:59:28: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
59 | if( done[ i ].size() <= i && i < k + 2 ){
| ~~~~~~~~~~~~~~~~~^~~~
burza.cpp:11:41: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | #define FOR( k , n ) for( int k = 0 ; k < n ; k ++ )
......
71 | FOR( k , done[ j ].size() ){
| ~~~~~~~~~~~~~~~~~~~~
burza.cpp:71:8: note: in expansion of macro 'FOR'
71 | FOR( k , done[ j ].size() ){
| ^~~
burza.cpp:11:41: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | #define FOR( k , n ) for( int k = 0 ; k < n ; k ++ )
......
81 | FOR( k , children[ mx.s ].size() ) visited[ children[ mx.s ][ k ] ] = 1 ;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
burza.cpp:81:5: note: in expansion of macro 'FOR'
81 | FOR( k , children[ mx.s ].size() ) visited[ children[ mx.s ][ k ] ] = 1 ;
| ^~~