Main.cc: In function ‘int main()’: Main.cc:29:13: error: cannot convert ‘edge’ to ‘int’ in initialization int ne=e[i]; ^ Main.cc:29:7: warning: unused variable ‘ne’ [-Wunused-variable] int ne=e[i]; ^~ Main.cc:19:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ~~~~~^~~~~~~~~ Main.cc:23:9: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&num); ~~~~~^~~~~~~~~~~