carnival.cpp: In function 'int main()':
carnival.cpp:13: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:14: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:18: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:17:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &c);
~~~~~^~~~~~~~~~
carnival.cpp:27:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &c);
~~~~~^~~~~~~~~~