carnival.cpp: In function 'int getrange(int, int)':
carnival.cpp:10:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int res; scanf("%d", &res);
^
carnival.cpp: In function 'int getin(int, int, int)':
carnival.cpp:19:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int res; scanf("%d", &res);
^
carnival.cpp: In function 'int main()':
carnival.cpp:24:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^