kangaroo.cpp:20:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
20 | main()
| ^~~~
kangaroo.cpp: In function 'int main()':
kangaroo.cpp:26:15: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=]
26 | printf("%ld\n",solve(n,1));
| ~~^ ~~~~~~~~~~
| | |
| long int int
| %d
kangaroo.cpp:25:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf("%d %d %d",&n,&s,&t);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~