fish.cpp: In function 'int main()':
fish.cpp:49:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for(int i = 0; i < v.size(); i++){
| ~~^~~~~~~~~~
fish.cpp:20:7: warning: variable 'visited' set but not used [-Wunused-but-set-variable]
20 | bool visited[M + 1];
| ^~~~~~~
fish.cpp:11:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | scanf(" %d",&N);
| ~~~~~^~~~~~~~~~
fish.cpp:12:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf(" %d",&M);
| ~~~~~^~~~~~~~~~
fish.cpp:14:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf(" %d",&mod);
| ~~~~~^~~~~~~~~~~~
fish.cpp:37:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | scanf(" %d",&l);
| ~~~~~^~~~~~~~~~
fish.cpp:38:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf(" %d",&h);
| ~~~~~^~~~~~~~~~
/tmp/cc4uMb2r.o: in function `main':
fish.cpp:(.text.startup+0x8): relocation truncated to fit: R_X86_64_PC32 against symbol `N' defined in .bss section in /tmp/cc4uMb2r.o
fish.cpp:(.text.startup+0x3d): relocation truncated to fit: R_X86_64_PC32 against symbol `M' defined in .bss section in /tmp/cc4uMb2r.o
fish.cpp:(.text.startup+0x52): relocation truncated to fit: R_X86_64_PC32 against symbol `mod' defined in .bss section in /tmp/cc4uMb2r.o
fish.cpp:(.text.startup+0x6e): relocation truncated to fit: R_X86_64_PC32 against symbol `M' defined in .bss section in /tmp/cc4uMb2r.o
fish.cpp:(.text.startup+0x202): relocation truncated to fit: R_X86_64_PC32 against symbol `mod' defined in .bss section in /tmp/cc4uMb2r.o
fish.cpp:(.text.startup+0x29c): relocation truncated to fit: R_X86_64_PC32 against symbol `N' defined in .bss section in /tmp/cc4uMb2r.o
fish.cpp:(.text.startup+0x2c1): relocation truncated to fit: R_X86_64_PC32 against symbol `N' defined in .bss section in /tmp/cc4uMb2r.o
fish.cpp:(.text.startup+0x2c8): relocation truncated to fit: R_X86_64_PC32 against symbol `v' defined in .bss section in /tmp/cc4uMb2r.o
fish.cpp:(.text.startup+0x2d1): relocation truncated to fit: R_X86_64_PC32 against symbol `l' defined in .bss section in /tmp/cc4uMb2r.o
fish.cpp:(.text.startup+0x2e6): relocation truncated to fit: R_X86_64_PC32 against symbol `h' defined in .bss section in /tmp/cc4uMb2r.o
fish.cpp:(.text.startup+0x2fa): additional relocation overflows omitted from the output
/usr/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax
collect2: error: ld returned 1 exit status