foo.cc: In function 'int add(int*, int, int*, int)':
foo.cc:18:27: error: expected ';' before '}' token
18 | a1[i]=y%10
| ^
| ;
19 | }
| ~
foo.cc:12:13: warning: unused variable 'm' [-Wunused-variable]
12 | int m;
| ^
foo.cc: In function 'int main()':
foo.cc:58:25: error: 'n12' was not declared in this scope; did you mean 'n2'?
58 | for(int i=1; i<=n12; i++)
| ^~~
| n2
foo.cc:61:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
61 | if(m1>=m2)
| ^~
foo.cc:63:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
63 | output(a1,m);
| ^~~~~~
foo.cc:64:9: error: 'else' without a previous 'if'
64 | else
| ^~~~
[Hydro](https://hydro.ac)提供评测服务