carnival.cpp: In function 'void query(int, int, int)':
carnival.cpp:13:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
13 | printf("%d ",temp.size());
| ~^ ~~~~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %ld
carnival.cpp: In function 'int main()':
carnival.cpp:50:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
50 | if(temp = get(1 ,(i-1) + 1)){
| ~~~~~^~~~~~~~~~~~~~~~~~~
carnival.cpp: In function 'void bagi(int, int, int)':
carnival.cpp:38:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d",&temp);
| ~~~~~^~~~~~~~~~~~
carnival.cpp: In function 'int main()':
carnival.cpp:43:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
43 | scanf("%d",&N);
| ~~~~~^~~~~~~~~
carnival.cpp:49:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
49 | scanf("%d",&temp);
| ~~~~~^~~~~~~~~~~~