carnival.cpp: In function 'int main()':
carnival.cpp:28:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf ("%d",pos.size()-m+1);
^
carnival.cpp:29: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:32:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int c; scanf ("%d",&c);
^