Main.cpp: In function 'int main()':
Main.cpp:29:30: warning: narrowing conversion of 'x' from 'long long int' to 'int' [-Wnarrowing]
29 | edgs . push_back ( { x , y , c , p , edgs . size () } );
| ^
Main.cpp:29:34: warning: narrowing conversion of 'y' from 'long long int' to 'int' [-Wnarrowing]
29 | edgs . push_back ( { x , y , c , p , edgs . size () } );
| ^
Main.cpp:29:38: warning: narrowing conversion of 'c' from 'long long int' to 'int' [-Wnarrowing]
29 | edgs . push_back ( { x , y , c , p , edgs . size () } );
| ^
Main.cpp:29:42: warning: narrowing conversion of 'p' from 'long long int' to 'int' [-Wnarrowing]
29 | edgs . push_back ( { x , y , c , p , edgs . size () } );
| ^
Main.cpp:29:58: warning: narrowing conversion of 'edgs.std::vector<edg>::size()' from 'std::vector<edg>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
29 | edgs . push_back ( { x , y , c , p , edgs . size () } );
| ~~~~~~~~~~~~^~
Main.cpp:31:30: warning: narrowing conversion of 'y' from 'long long int' to 'int' [-Wnarrowing]
31 | edgs . push_back ( { y , x , c , p , edgs . size () } );
| ^
Main.cpp:31:34: warning: narrowing conversion of 'x' from 'long long int' to 'int' [-Wnarrowing]
31 | edgs . push_back ( { y , x , c , p , edgs . size () } );
| ^
Main.cpp:31:38: warning: narrowing conversion of 'c' from 'long long int' to 'int' [-Wnarrowing]
31 | edgs . push_back ( { y , x , c , p , edgs . size () } );
| ^
Main.cpp:31:42: warning: narrowing conversion of 'p' from 'long long int' to 'int' [-Wnarrowing]
31 | edgs . push_back ( { y , x , c , p , edgs . size () } );
| ^
Main.cpp:31:58: warning: narrowing conversion of 'edgs.std::vector<edg>::size()' from 'std::vector<edg>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
31 | edgs . push_back ( { y , x , c , p , edgs . size () } );
| ~~~~~~~~~~~~^~
Main.cpp:33:32: warning: narrowing conversion of 'y' from 'long long int' to 'int' [-Wnarrowing]
33 | gr [x] . push_back ( { y , c , p } );
| ^
Main.cpp:33:36: warning: narrowing conversion of 'c' from 'long long int' to 'int' [-Wnarrowing]
33 | gr [x] . push_back ( { y , c , p } );
| ^
Main.cpp:33:40: warning: narrowing conversion of 'p' from 'long long int' to 'int' [-Wnarrowing]
33 | gr [x] . push_back ( { y , c , p } );
| ^
Main.cpp:34:32: warning: narrowing conversion of 'x' from 'long long int' to 'int' [-Wnarrowing]
34 | gr [y] . push_back ( { x , c , p } );
| ^
Main.cpp:34:36: warning: narrowing conversion of 'c' from 'long long int' to 'int' [-Wnarrowing]
34 | gr [y] . push_back ( { x , c , p } );
| ^
Main.cpp:34:40: warning: narrowing conversion of 'p' from 'long long int' to 'int' [-Wnarrowing]
34 | gr [y] . push_back ( { x , c , p } );
| ^
Main.cpp:16:11: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf ( "%lld%lld" , &n , &m );
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:26:15: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf ( "%lld%lld%lld%lld" , &x , &y , &c , &p );
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~