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