money.cpp:78:11: error: redefinition of 'const int maxN'
78 | const int maxN=1e6+5;
| ^~~~
money.cpp:9:11: note: 'const int maxN' previously defined here
9 | const int maxN=1e6+5;
| ^~~~
money.cpp:79:10: error: redefinition of 'const long long int inf'
79 | const ll inf=2e18;
| ^~~
money.cpp:10:10: note: 'const long long int inf' previously defined here
10 | const ll inf=2e18;
| ^~~
money.cpp:80:5: error: redefinition of 'int n'
80 | int n,a[maxN+1],pre[maxN+1];
| ^
money.cpp:11:5: note: 'int n' previously declared here
11 | int n,a[maxN+1],pre[maxN+1];
| ^
money.cpp:80:7: error: redefinition of 'int a [1000006]'
80 | int n,a[maxN+1],pre[maxN+1];
| ^
money.cpp:11:7: note: 'int a [1000006]' previously declared here
11 | int n,a[maxN+1],pre[maxN+1];
| ^
money.cpp:80:17: error: redefinition of 'int pre [1000006]'
80 | int n,a[maxN+1],pre[maxN+1];
| ^~~
money.cpp:11:17: note: 'int pre [1000006]' previously declared here
11 | int n,a[maxN+1],pre[maxN+1];
| ^~~
money.cpp:77:12: error: redefinition of 'std::set<long long int> second'
77 | #define se second
| ^~~~~~
money.cpp:81:9: note: in expansion of macro 'se'
81 | set<ll> se;
| ^~
money.cpp:8:12: note: 'std::set<long long int> second' previously declared here
8 | #define se second
| ^~~~~~
money.cpp:12:9: note: in expansion of macro 'se'
12 | set<ll> se;
| ^~
money.cpp:82:5: error: redefinition of 'int main()'
82 | int main()
| ^~~~
money.cpp:13:5: note: 'int main()' previously defined here
13 | int main()
| ^~~~