Compile Error

foo.cc:6:7: error: stray '\357' in program
    6 |  int x,max;
      |       ^
foo.cc:6:8: error: stray '\274' in program
    6 |  int x,max;
      |        ^
foo.cc:6:9: error: stray '\214' in program
    6 |  int x,max;
      |         ^
foo.cc:16:12: error: stray '\357' in program
   16 |    continue;
      |            ^
foo.cc:16:13: error: stray '\274' in program
   16 |    continue;
      |             ^
foo.cc:16:14: error: stray '\233' in program
   16 |    continue;
      |              ^
foo.cc: In function 'int main()':
foo.cc:6:10: error: expected initializer before 'max'
    6 |  int x,max;
      |          ^~~
foo.cc:7:7: error: 'x' was not declared in this scope
    7 |  cin>>x;
      |       ^
foo.cc:12:11: error: expected ';' before 'if'
   12 |   ans[i]=0
      |           ^
      |           ;
   13 |   if(n[i]>=90&&n[i]<=140&&n[i+1]>=60&&n[i+1]<=90)
      |   ~~       
foo.cc:15:3: error: 'else' without a previous 'if'
   15 |   else
      |   ^~~~
foo.cc:16:12: error: expected ';' before '}' token
   16 |    continue;
      |            ^
      |            ;
   17 |  }
      |  ~          
foo.cc:18:11: error: overloaded function with no contextual type information
   18 |  max=ans[0];
      |           ^
foo.cc:21:12: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>'
   21 |   if(ans[i]>max)
      |      ~~~~~~^~~~
foo.cc:22:13: error: overloaded function with no contextual type information
   22 |    max=ans[i];
      |             ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P2374 1.5.24:正常血压
语言
C++
递交时间
2022-02-15 23:29:54
评测时间
2022-02-15 23:29:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes