记录详情

Runtime Error

foo.cc: In function ‘int main()’:
foo.cc:21:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘std::string*’ {aka ‘std::__cxx11::basic_string<char>*’} [-Wformat=]
   21 |                 scanf("%s%s", &s1, &s2);
      |                        ~^     ~~~
      |                         |     |
      |                         char* std::string* {aka std::__cxx11::basic_string<char>*}
foo.cc:21:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘std::string*’ {aka ‘std::__cxx11::basic_string<char>*’} [-Wformat=]
   21 |                 scanf("%s%s", &s1, &s2);
      |                          ~^        ~~~
      |                           |        |
      |                           char*    std::string* {aka std::__cxx11::basic_string<char>*}
# 状态 耗时 内存占用
#1 Runtime Error Aborted 2ms 320.0 KiB

信息

递交者
类型
自测
题目
P1566 Problem 1D. 又是高精度?!
语言
C++
递交时间
2024-04-11 11:58:09
评测时间
2024-04-11 11:58:09
评测机
分数
0
总耗时
2ms
峰值内存
320.0 KiB