teleporters.cpp: In function 'void dfs(int, int)':
teleporters.cpp:28:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(x==v2.size()-1){
~^~~~~~~~~~~~~
teleporters.cpp: In function 'int main()':
teleporters.cpp:43:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<v2.size(); i++){
~^~~~~~~~~~
teleporters.cpp:46:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<v.size(); i++){
~^~~~~~~~~
teleporters.cpp:53:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<v2.size(); i++){
~^~~~~~~~~~
teleporters.cpp:36:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
~~~~~^~~~~~~~~~~~~~~~
teleporters.cpp:38:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int a, b; scanf("%d%d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~