/in/foo.cc: In function 'void tx()':
/in/foo.cc:5:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
/in/foo.cc:6:10: error: 'a2' was not declared in this scope
sum+=a2[i];
^~
/in/foo.cc:7:20: error: 'm' was not declared in this scope
for(int i=1;i<=m;i++)
^
/in/foo.cc:8:12: error: 'b2' was not declared in this scope
if(sum-b2[i]>=0) {
^~
/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:17:5: error: 'tot' was not declared in this scope
tot=max(tot,x);
^~~
/in/foo.cc:18:10: error: 'm' was not declared in this scope
if(x>m) return ;
^
/in/foo.cc:19:8: error: 'cnt' was not declared in this scope
if(cnt>25000000){
^~~
/in/foo.cc:23:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;++i){
^
/in/foo.cc:24:12: error: 'a' was not declared in this scope
if(a[i]>=b[x]){
^
/in/foo.cc:24:18: error: 'b' was not declared in this scope
if(a[i]>=b[x]){
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:33:9: error: 'n' was not declared in this scope
cin>>n;
^
/in/foo.cc:34:30: error: 'a' was not declared in this scope
for(int i=1;i<=n;i++)cin>>a[i];
^
/in/foo.cc:35:9: error: 'm' was not declared in this scope
cin>>m;
^
/in/foo.cc:36:31: error: 'b' was not declared in this scope
for(int i=1;i<=m;i++) cin>>b[i];
^
/in/foo.cc:37:9: error: 'b' was not declared in this scope
sort(b+1,b+m+1);
^
/in/foo.cc:39:17: error: 'tot' was not declared in this scope
dfs(1);cout<<tot-1;
^~~