mart.cpp: In function 'int main()':
mart.cpp:59:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int l = 0; l < dist[s].size(); ++l)
^
mart.cpp:62:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < dist[s].size(); ++j) {
^
mart.cpp:37: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:38: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:41: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:54: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:58:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &idx);
^