foo.cc: In function 'int main()':
foo.cc:32:7: error: expected '(' before '{' token
while{
^
foo.cc:32:7: error: expected primary-expression before '{' token
foo.cc:32:7: error: expected ')' before '{' token
foo.cc:34:4: error: 'mycope' was not declared in this scope
mycope(t,s2,i,L);
^~~~~~
foo.cc:34:4: note: suggested alternative: 'mycopy'
mycope(t,s2,i,L);
^~~~~~
mycopy
foo.cc:24:10: warning: unused variable 'n1' [-Wunused-variable]
int num,n1,n2,L,k,n;
^~
foo.cc:27:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务