Main.cpp: In function 'int main()':
Main.cpp:26:32: warning: narrowing conversion of 'x' from 'long long int' to 'int' [-Wnarrowing]
26 | gr [y] . push_back ( { x , c , p , edgs . size () , 0 } );
| ^
Main.cpp:26:36: warning: narrowing conversion of 'c' from 'long long int' to 'int' [-Wnarrowing]
26 | gr [y] . push_back ( { x , c , p , edgs . size () , 0 } );
| ^
Main.cpp:26:40: warning: narrowing conversion of 'p' from 'long long int' to 'int' [-Wnarrowing]
26 | gr [y] . push_back ( { x , c , p , edgs . size () , 0 } );
| ^
Main.cpp:26:56: warning: narrowing conversion of 'edgs.std::vector<edg>::size()' from 'std::vector<edg>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
26 | gr [y] . push_back ( { x , c , p , edgs . size () , 0 } );
| ~~~~~~~~~~~~^~
Main.cpp:27:30: warning: narrowing conversion of 'x' from 'long long int' to 'int' [-Wnarrowing]
27 | edgs . push_back ( { x , y , c , p , edgs . size () } );
| ^
Main.cpp:27:34: warning: narrowing conversion of 'y' from 'long long int' to 'int' [-Wnarrowing]
27 | edgs . push_back ( { x , y , c , p , edgs . size () } );
| ^
Main.cpp:27:38: warning: narrowing conversion of 'c' from 'long long int' to 'int' [-Wnarrowing]
27 | edgs . push_back ( { x , y , c , p , edgs . size () } );
| ^
Main.cpp:27:42: warning: narrowing conversion of 'p' from 'long long int' to 'int' [-Wnarrowing]
27 | edgs . push_back ( { x , y , c , p , edgs . size () } );
| ^
Main.cpp:27:58: warning: narrowing conversion of 'edgs.std::vector<edg>::size()' from 'std::vector<edg>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
27 | edgs . push_back ( { x , y , c , p , edgs . size () } );
| ~~~~~~~~~~~~^~
Main.cpp:29:32: warning: narrowing conversion of 'y' from 'long long int' to 'int' [-Wnarrowing]
29 | gr [x] . push_back ( { y , c , p , edgs . size () , 0 } );
| ^
Main.cpp:29:36: warning: narrowing conversion of 'c' from 'long long int' to 'int' [-Wnarrowing]
29 | gr [x] . push_back ( { y , c , p , edgs . size () , 0 } );
| ^
Main.cpp:29:40: warning: narrowing conversion of 'p' from 'long long int' to 'int' [-Wnarrowing]
29 | gr [x] . push_back ( { y , c , p , edgs . size () , 0 } );
| ^
Main.cpp:29:56: warning: narrowing conversion of 'edgs.std::vector<edg>::size()' from 'std::vector<edg>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
29 | gr [x] . push_back ( { y , c , p , edgs . size () , 0 } );
| ~~~~~~~~~~~~^~
Main.cpp:30:30: warning: narrowing conversion of 'y' from 'long long int' to 'int' [-Wnarrowing]
30 | edgs . push_back ( { y , x , c , p , edgs . size () } );
| ^
Main.cpp:30:34: warning: narrowing conversion of 'x' from 'long long int' to 'int' [-Wnarrowing]
30 | edgs . push_back ( { y , x , c , p , edgs . size () } );
| ^
Main.cpp:30:38: warning: narrowing conversion of 'c' from 'long long int' to 'int' [-Wnarrowing]
30 | edgs . push_back ( { y , x , c , p , edgs . size () } );
| ^
Main.cpp:30:42: warning: narrowing conversion of 'p' from 'long long int' to 'int' [-Wnarrowing]
30 | edgs . push_back ( { y , x , c , p , edgs . size () } );
| ^
Main.cpp:30:58: warning: narrowing conversion of 'edgs.std::vector<edg>::size()' from 'std::vector<edg>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
30 | edgs . push_back ( { y , x , c , p , edgs . size () } );
| ~~~~~~~~~~~~^~
Main.cpp:36:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edgg>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for ( int j = 0 ; j < gr [i] . size () ; j ++ ) gr [i][j] . sum = summ [ gr [i][j] . c ];
| ~~^~~~~~~~~~~~~~~~~~
Main.cpp:15:11: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf ( "%lld%lld" , &n , &m );
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:24:15: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | scanf ( "%lld%lld%lld%lld" , &x , &y , &c , &p );
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~