Compile Error

foo.cc:20:26: error: stray '\345' in program
             strcpy(b,a);a复制到b中
                          ^
foo.cc:20:27: error: stray '\244' in program
             strcpy(b,a);a复制到b中
                           ^
foo.cc:20:28: error: stray '\215' in program
             strcpy(b,a);a复制到b中
                            ^
foo.cc:20:29: error: stray '\345' in program
             strcpy(b,a);a复制到b中
                             ^
foo.cc:20:30: error: stray '\210' in program
             strcpy(b,a);a复制到b中
                              ^
foo.cc:20:31: error: stray '\266' in program
             strcpy(b,a);a复制到b中
                               ^
foo.cc:20:32: error: stray '\345' in program
             strcpy(b,a);a复制到b中
                                ^
foo.cc:20:33: error: stray '\210' in program
             strcpy(b,a);a复制到b中
                                 ^
foo.cc:20:34: error: stray '\260' in program
             strcpy(b,a);a复制到b中
                                  ^
foo.cc:20:36: error: stray '\344' in program
             strcpy(b,a);a复制到b中
                                    ^
foo.cc:20:37: error: stray '\270' in program
             strcpy(b,a);a复制到b中
                                     ^
foo.cc:20:38: error: stray '\255' in program
             strcpy(b,a);a复制到b中
                                      ^
foo.cc: In function 'int main()':
foo.cc:10:17: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     while(gets(a))
                 ^
In file included from /usr/include/stdio.h:862:0,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
 gets (char *__str)
 ^~~~
foo.cc:14:9: error: 'strrev' was not declared in this scope
         strrev(b);//反转字符串b
         ^~~~~~
foo.cc:14:9: note: suggested alternative: 'strsep'
         strrev(b);//反转字符串b
         ^~~~~~
         strsep
foo.cc:18:13: error: '__int64' was not declared in this scope
             __int64 t=atoi(a)+atoi(b);//转换成数字后相加
             ^~~~~~~
foo.cc:18:13: note: suggested alternative: '__int64_t'
             __int64 t=atoi(a)+atoi(b);//转换成数字后相加
             ^~~~~~~
             __int64_t
foo.cc:19:18: error: 't' was not declared in this scope
             itoa(t,a,10);//把数字结果t转换成10进制字符串存入a
                  ^
foo.cc:19:13: error: 'itoa' was not declared in this scope
             itoa(t,a,10);//把数字结果t转换成10进制字符串存入a
             ^~~~
foo.cc:19:13: note: suggested alternative: 'atol'
             itoa(t,a,10);//把数字结果t转换成10进制字符串存入a
             ^~~~
             atol
foo.cc:20:35: error: expected ';' before 'b'
             strcpy(b,a);a复制到b中
                                   ^
foo.cc:21:22: warning: statement has no effect [-Wunused-value]
             strrev(b);//反转字符串b
                      ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1107 回文数猜想(2)
语言
C++
递交时间
2021-11-25 21:58:53
评测时间
2021-11-25 21:58:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes