/ Vijos /

记录详情

Compile Error

foo.cc: In function 'void finds(int, int, int, int)':
foo.cc:10:34: error: 's' was not declared in this scope
  if(xs==xe&&ys==ye) {printf("%c",s[xs]);return;}
                                  ^
foo.cc:10:34: note: suggested alternative: 'xs'
  if(xs==xe&&ys==ye) {printf("%c",s[xs]);return;}
                                  ^
                                  xs
foo.cc:15:14: error: 's' was not declared in this scope
  printf("%c",s[t]);
              ^
foo.cc: In function 'int main()':
foo.cc:23:2: error: 'l' was not declared in this scope
  l=strlen(s1);
  ^
foo.cc:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s",s1);
  ~~~~~^~~~~~~~~
foo.cc:22:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s",s2);
  ~~~~~^~~~~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)

信息

递交者
类型
自测
题目
P1132 求二叉树的先序序列
语言
C++
递交时间
2020-08-15 22:15:08
评测时间
2020-08-15 22:15:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes