/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:40:14: error: 'struct SR' has no member named 'month'
      if(A[i].month==A[i+1].month && A[i].day==A[i+1].day)
              ^~~~~
/in/foo.cc:40:28: error: 'struct SR' has no member named 'month'
      if(A[i].month==A[i+1].month && A[i].day==A[i+1].day)
                            ^~~~~
/in/foo.cc:40:42: error: 'struct SR' has no member named 'day'
      if(A[i].month==A[i+1].month && A[i].day==A[i+1].day)
                                          ^~~
/in/foo.cc:40:54: error: 'struct SR' has no member named 'day'
      if(A[i].month==A[i+1].month && A[i].day==A[i+1].day)
                                                      ^~~
/in/foo.cc:42:15: error: 'struct SR' has no member named 'month'
    cout<<A[i].month<<' '<<A[i].day<<' '<<A[i].name;
               ^~~~~
/in/foo.cc:42:32: error: 'struct SR' has no member named 'day'
    cout<<A[i].month<<' '<<A[i].day<<' '<<A[i].name;
                                ^~~
/in/foo.cc:42:47: error: 'struct SR' has no member named 'name'
    cout<<A[i].month<<' '<<A[i].day<<' '<<A[i].name;
                                               ^~~~
/in/foo.cc:43:22: error: 'struct SR' has no member named 'month'
    while(i<n && A[i].month==A[i+1].month && A[i].day==A[i+1].day)
                      ^~~~~
/in/foo.cc:43:36: error: 'struct SR' has no member named 'month'
    while(i<n && A[i].month==A[i+1].month && A[i].day==A[i+1].day)
                                    ^~~~~
/in/foo.cc:43:50: error: 'struct SR' has no member named 'day'
    while(i<n && A[i].month==A[i+1].month && A[i].day==A[i+1].day)
                                                  ^~~
/in/foo.cc:43:62: error: 'struct SR' has no member named 'day'
    while(i<n && A[i].month==A[i+1].month && A[i].day==A[i+1].day)
                                                              ^~~
/in/foo.cc:45:27: error: 'struct SR' has no member named 'name'
         cout<<' '<<A[i+1].name;
                           ^~~~
/in/foo.cc: In function 'bool cmp(SR, SR)':
/in/foo.cc:25:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P2833 相同生日
语言
C++
递交时间
2024-05-30 09:53:59
评测时间
2024-05-30 09:53:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes