net.cpp: In function 'int main()':
net.cpp:57:33: error: 'ans' was not declared in this scope
for(int i = 0 ; i + edges < ans.size() ; ++i)
^~~
net.cpp:57:33: note: suggested alternative: 'abs'
for(int i = 0 ; i + edges < ans.size() ; ++i)
^~~
abs
net.cpp:27:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" , &n) ;
~~~~~^~~~~~~~~~~
net.cpp:31:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d" , &x , &y) ;
~~~~~^~~~~~~~~~~~~~~~~~~