crazy.cpp:40:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
40 | main(){
| ^
crazy.cpp: In function 'int main()':
crazy.cpp:44:15: warning: unused variable 'j' [-Wunused-variable]
44 | 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:42:5: note: in expansion of macro 'scan1'
42 | 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:45:9: note: in expansion of macro 'scan1'
45 | 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:47:13: note: in expansion of macro 'scan1'
47 | scan1(q[i])
| ^~~~~