teleporters.cpp: In function 'void dfs(int, ll)':
teleporters.cpp:29:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(x==v2.size()-1){
~^~~~~~~~~~~~~
teleporters.cpp: In function 'int main()':
teleporters.cpp:44:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<v2.size(); i++){
~^~~~~~~~~~
teleporters.cpp:47:4: error: no matching function for call to 'S::S()'
S now;
^~~
teleporters.cpp:11:2: note: candidate: S::S(int, int)
S(int x, int y) : x(x), y(y) {}
^
teleporters.cpp:11:2: note: candidate expects 2 arguments, 0 provided
teleporters.cpp:10:8: note: candidate: constexpr S::S(const S&)
struct S{
^
teleporters.cpp:10:8: note: candidate expects 1 argument, 0 provided
teleporters.cpp:10:8: note: candidate: constexpr S::S(S&&)
teleporters.cpp:10:8: note: candidate expects 1 argument, 0 provided
teleporters.cpp:48: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:37: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:39: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);
~~~~~^~~~~~~~~~~~~~~~