carnival.cpp: In function 'int main()':
carnival.cpp:30:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=m;i<pos.size();i++) printf (" %d",pos[i]);
^
carnival.cpp:25:30: warning: unused variable 'a' [-Wunused-variable]
int l = 0, r = pos.size(), a = pos.size();
^
carnival.cpp:10:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int N; scanf ("%d",&N);
^
carnival.cpp:14:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d",num+i);
^
carnival.cpp:33:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int c; scanf ("%d",&c);
^