Main.cc: In function ‘int main()’: Main.cc:4:7: error: ‘n’ was not declared in this scope cin>>n>>p; ^ Main.cc:4:7: note: suggested alternative: ‘yn’ cin>>n>>p; ^ yn Main.cc:4:10: error: ‘p’ was not declared in this scope cin>>n>>p; ^ Main.cc:6:8: error: ‘a’ was not declared in this scope cin>>a[i]; ^ Main.cc:7:3: error: ‘ans’ was not declared in this scope ans+=a[i]; ^~~ Main.cc:7:3: note: suggested alternative: ‘abs’ ans+=a[i]; ^~~ abs Main.cc:8:19: error: ‘s’ was not declared in this scope if(i==1||a[i]>t[i].u>>t[i].v>>t[i].w; ^ Main.cc:12:7: error: ‘t’ was not declared in this scope sort(t+1,t+p+1); ^ Main.cc:12:7: note: suggested alternative: ‘tm’ sort(t+1,t+p+1); ^ tm Main.cc:13:2: error: ‘Kruskal’ was not declared in this scope Kruskal(); ^~~~~~~