gas.cpp: In function 'int main()':
gas.cpp:39:45: error: 'w' was not declared in this scope
graph[uu].push_back(P(vv,(long long)w));
^
gas.cpp:51:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<graph[tp.second].size();j++){
^
gas.cpp:43:14: warning: unused variable 'visit' [-Wunused-variable]
bool visit[MAXV];
^
gas.cpp:25:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&v,&e);
^
gas.cpp:28:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&cities[i].cost);
^
gas.cpp:37:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&uu,&vv,&ww);
^