Compile Error

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
[Hydro](https://hydro.ac)提供评测服务

信息

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