crazy.cpp:38:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
38 | main(){
| ^
crazy.cpp: In function 'int main()':
crazy.cpp:42:15: warning: unused variable 'j' [-Wunused-variable]
42 | int i,j,s=0,cnt=0;
| ^
crazy.cpp:11:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | #define scan1(a) scanf("%d",&a);
| ~~~~~^~~~~~~~~
crazy.cpp:40:5: note: in expansion of macro 'scan1'
40 | scan1(t)
| ^~~~~
crazy.cpp:11:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | #define scan1(a) scanf("%d",&a);
| ~~~~~^~~~~~~~~
crazy.cpp:43:9: note: in expansion of macro 'scan1'
43 | scan1(n)
| ^~~~~
crazy.cpp:11:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | #define scan1(a) scanf("%d",&a);
| ~~~~~^~~~~~~~~
crazy.cpp:45:13: note: in expansion of macro 'scan1'
45 | scan1(q[i])
| ^~~~~