/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:27:21: error: 'strcmp' was not declared in this scope
   27 |   if(a[i].End>85 && strcmp(a[i].East,"Y")==0){
      |                     ^~~~~~
foo.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
foo.cc:30:23: error: 'strcmp' was not declared in this scope
   30 |   if(a[i].Class>85 && strcmp(a[i].job,"Y")==0){
      |                       ^~~~~~
foo.cc:30:23: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
foo.cc:38:13: error: cannot convert 'student' to 'int' in assignment
   38 |        w=a[j];
      |          ~~~^
      |             |
      |             student
foo.cc:40:15: error: no match for 'operator=' (operand types are 'student' and 'int')
   40 |        a[j+1]=w;
      |               ^
foo.cc:3:8: note: candidate: 'student& student::operator=(const student&)'
    3 | struct student{
      |        ^~~~~~~
foo.cc:3:8: note:   no known conversion for argument 1 from 'int' to 'const student&'
foo.cc:3:8: note: candidate: 'student& student::operator=(student&&)'
foo.cc:3:8: note:   no known conversion for argument 1 from 'int' to 'student&&'
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2022-06-11 21:41:32
评测时间
2022-06-11 21:41:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes