foo.cc:36:18: warning: missing terminating " character
char pstr2[]="abc
^
foo.cc:36:18: error: missing terminating " character
char pstr2[]="abc
^~~~
foo.cc:7:6: error: expected initializer before 'char'
char *p=str;
^~~~
foo.cc:9:21: error: 'str' was not declared in this scope
int len=strlen(str);
^~~
foo.cc:10:21: error: 'n' was not declared in this scope
int remain=len-n;
^
foo.cc:11:17: error: expected constructor, destructor, or type conversion before '(' token
strcpy(temp,str+remain);
^
foo.cc:12:11: error: expected constructor, destructor, or type conversion before '(' token
strcpy(temp+n,str);
^
foo.cc:15:11: error: expected ')' before '+' token
*(temp+len)='\0';
^
foo.cc:15:11: error: expected constructor, destructor, or type conversion before '+' token
foo.cc:16:12: error: expected constructor, destructor, or type conversion before '(' token
strcpy(p,temp);
^
foo.cc:18:1: error: expected declaration before '}' token
}
^
[Hydro](https://hydro.ac)提供评测服务