/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void write(long long int)':
/in/foo.cc:22:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (x<0) putchar('-'),x=-x;if (x>=10) write(x/10);
  ^~
/in/foo.cc:22:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  if (x<0) putchar('-'),x=-x;if (x>=10) write(x/10);
                             ^~
/in/foo.cc: In function 'int findit()':
/in/foo.cc:34:7: error: 'strcmp' was not declared in this scope
   if (strcmp(str[i],ts)==0) return i;
       ^~~~~~
/in/foo.cc:34:7: note: suggested alternative: 'str'
   if (strcmp(str[i],ts)==0) return i;
       ^~~~~~
       str
/in/foo.cc:36:2: error: 'strcpy' was not declared in this scope
  strcpy(str[cnt],ts);
  ^~~~~~
/in/foo.cc:36:2: note: suggested alternative: 'str'
  strcpy(str[cnt],ts);
  ^~~~~~
  str

信息

递交者
类型
递交
题目
P1287 确定的位置
语言
C++
递交时间
2017-09-30 10:24:41
评测时间
2017-09-30 10:24:41
评测机
分数
0
总耗时
378ms
峰值内存
36.805 MiB