/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:22:16: 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",&ms);
                ^
/in/foo.cc:24:23: error: expected primary-expression before ']' token
  while(scanf("%s",&ch[])) {
                       ^
/in/foo.cc:26:6: error: 's' was not declared in this scope
   if(s.size()>=len&&take(1)) {
      ^
/in/foo.cc:33:2: error: 'cout' was not declared in this scope
  cout<<ans;
  ^~~~

信息

递交者
类型
递交
题目
P1425 子串清除
语言
C++
递交时间
2018-07-24 23:03:38
评测时间
2018-07-24 23:03:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes