mart.cpp: In function 'int main()':
mart.cpp:48:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int l = 0; l < dist[s].size(); ++l)
^
mart.cpp:51:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < dist[s].size(); ++j) {
^
mart.cpp:32:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &n, &m, &k, &q);
^
mart.cpp:33:56: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 0; i < k; ++i) scanf("%d", martIdx + i);
^
mart.cpp:36:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &a, &b, &v);
^
mart.cpp:43:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &s, &x);
^
mart.cpp:47:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &idx);
^