记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:26: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
  scanf("%s%s",&DNA1,&DNA2);
                          ^
/in/foo.cc:9:26: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
/in/foo.cc:12:27: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
      if (DNA1[i] = DNA2[i]) sum++;
                           ^
# 状态 耗时 内存占用
#1 Runtime Error 1ms 204.0 KiB

信息

递交者
类型
递交
题目
基因相关性
语言
C++
递交时间
2019-03-10 16:29:54
评测时间
2019-03-10 16:29:54
评测机
分数
0
总耗时
1ms
峰值内存
204.0 KiB