carnival.cpp: In function 'int main()':
carnival.cpp:12:37: 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 ", tor.size() + 1);
~~~~~~~~~~~~~~^
carnival.cpp:13:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = 0; j < tor.size(); ++j) printf("%d ", tor[j] + 1);
~~^~~~~~~~~~~~
carnival.cpp:17:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (c <= tor.size()) {
~~^~~~~~~~~~~~~
carnival.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
~~~~~^~~~~~~~~~
carnival.cpp:16:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &c);
~~~~~^~~~~~~~~~
carnival.cpp:28:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &c);
~~~~~^~~~~~~~~~