/ JoyAc /

记录详情

Compile Error

foo.cc:10:38: error: stray '\357' in program
    if(((b[i]-a[i])+(c[i]-a[i]))%26==0)
                                      ^
foo.cc:10:39: error: stray '\274' in program
    if(((b[i]-a[i])+(c[i]-a[i]))%26==0)
                                       ^
foo.cc:10:40: error: stray '\211' in program
    if(((b[i]-a[i])+(c[i]-a[i]))%26==0)
                                        ^
foo.cc: In function 'bool check(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string)':
foo.cc:10:7: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
    if(((b[i]-a[i])+(c[i]-a[i]))%26==0)
       ^
foo.cc:11:5: error: expected ';' before 'return'
     return true;
     ^~~~~~
foo.cc:10:35: warning: value computed is not used [-Wunused-value]
    if(((b[i]-a[i])+(c[i]-a[i]))%26==0)
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
foo.cc:12:1: error: expected primary-expression before 'return'
 return  false;
 ^~~~~~
foo.cc:12:1: error: expected ')' before 'return'
foo.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cc: In function 'int main()':
foo.cc:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1012 字符串还原
语言
C++
递交时间
2021-11-22 19:33:34
评测时间
2021-11-22 19:33:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes