记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1301 H. String Shifting
比赛
南京师范大学2021年11月程序设计竞赛
语言
C++
递交时间
2021-11-21 14:54:36
评测时间
2021-11-21 14:54:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes