money.cpp:18:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
18 | main(){
| ^
money.cpp: In function 'int main()':
money.cpp:19:11: warning: unused variable 'j' [-Wunused-variable]
19 | int n,j,i,ans=0;
| ^
money.cpp:9:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
money.cpp:20:5: note: in expansion of macro 'scan1'
20 | scan1(n)
| ^~~~~
money.cpp:9:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
money.cpp:21:23: note: in expansion of macro 'scan1'
21 | for (i=1;i<=n;++i)scan1(q[i])
| ^~~~~