/ Vijos /

记录详情

Compile Error

/in/foo.cc: In constructor 'charList::charList(char*, int)':
/in/foo.cc:13:3: error: 'memcpy' was not declared in this scope
   memcpy(_list, a, size);
   ^~~~~~
/in/foo.cc:13:3: note: suggested alternative: 'wmemcpy'
   memcpy(_list, a, size);
   ^~~~~~
   wmemcpy
/in/foo.cc: In function 'int main()':
/in/foo.cc:89:7: error: 'strcmp' was not declared in this scope
   if (strcmp(a._list1, b._list2[k]) == 0)
       ^~~~~~
/in/foo.cc:89:7: note: suggested alternative: 'str3'
   if (strcmp(a._list1, b._list2[k]) == 0)
       ^~~~~~
       str3
/in/foo.cc:99:7: error: 'strcmp' was not declared in this scope
   if (strcmp(a._list1, b._list3[k]) == 0)
       ^~~~~~
/in/foo.cc:99:7: note: suggested alternative: 'str3'
   if (strcmp(a._list1, b._list3[k]) == 0)
       ^~~~~~
       str3
/in/foo.cc:109:7: error: 'strcmp' was not declared in this scope
   if (strcmp(b._list1, a._list2[k]) == 0)
       ^~~~~~
/in/foo.cc:109:7: note: suggested alternative: 'str3'
   if (strcmp(b._list1, a._list2[k]) == 0)
       ^~~~~~
       str3
/in/foo.cc:119:7: error: 'strcmp' was not declared in this scope
   if (strcmp(b._list1, a._list3[k]) == 0)
       ^~~~~~
/in/foo.cc:119:7: note: suggested alternative: 'str3'
   if (strcmp(b._list1, a._list3[k]) == 0)
       ^~~~~~
       str3
/in/foo.cc:129:7: error: 'strcmp' was not declared in this scope
   if (strcmp(c._list1, a._list2[k]) == 0)
       ^~~~~~
/in/foo.cc:129:7: note: suggested alternative: 'str3'
   if (strcmp(c._list1, a._list2[k]) == 0)
       ^~~~~~
       str3
/in/foo.cc:139:7: error: 'strcmp' was not declared in this scope
   if (strcmp(c._list1, a._list3[k]) == 0)
       ^~~~~~
/in/foo.cc:139:7: note: suggested alternative: 'str3'
   if (strcmp(c._list1, a._list3[k]) == 0)
       ^~~~~~
       str3
/in/foo.cc:138:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (int k = 0; k <= 6; k++)
  ^~~
/in/foo.cc:148:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   return 0;
   ^~~~~~

信息

递交者
类型
递交
题目
P1449 字符串还原
语言
C++
递交时间
2017-09-22 13:13:46
评测时间
2017-09-22 13:13:46
评测机
分数
0
总耗时
352ms
峰值内存
30.051 MiB