blocks.cpp: In function 'long long int rec(int, int, long long int)':
blocks.cpp:31:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
31 | if (k == 0 || k != 0 && i == n)ret INF;
| ~~~~~~~^~~~~~~~~
blocks.cpp: At global scope:
blocks.cpp:41:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
41 | main(){
| ^
blocks.cpp: In function 'int main()':
blocks.cpp:15:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
15 | #define scan2(a,b) scanf("%d %d",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~
blocks.cpp:43:5: note: in expansion of macro 'scan2'
43 | scan2(n,k)
| ^~~~~
blocks.cpp:14:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | #define scan1(a) scanf("%d",&a);
| ~~~~~^~~~~~~~~
blocks.cpp:45:9: note: in expansion of macro 'scan1'
45 | scan1(q[i])
| ^~~~~