sightseeing.cpp: In function ‘void prim()’:
sightseeing.cpp:24:27: error: ‘memset’ was not declared in this scope
memset(ans,-1,sizeof(ans));
^
sightseeing.cpp:26:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<lis[0].size();i++) pq.push(lis[0][i]);
^
sightseeing.cpp:33:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0;i<lis[here].size();i++) pq.push(lis[here][i]);
^
sightseeing.cpp: In function ‘void process()’:
sightseeing.cpp:42:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a);
^
sightseeing.cpp: In function ‘void input()’:
sightseeing.cpp:50:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&n,&m,&q);
^
sightseeing.cpp:53:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&a,&b,&w);
^