F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_33576333_6868.cpp:8:8: error: 'node time [105]' redeclared as different kind of symbol
 }time[N];
        ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_33576333_6868.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:233:29: note: previous declaration 'time_t time(time_t*)'
 __CRT_INLINE time_t __cdecl time(time_t *_Time) { return _time64(_Time); }
                             ^
0_0_33576333_6868.cpp: In function 'int main(int, const char**)':
0_0_33576333_6868.cpp:16:26: error: request for member 's' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
             cin>>time[i].s>>time[i].e;
                          ^
0_0_33576333_6868.cpp:16:37: error: request for member 'e' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
             cin>>time[i].s>>time[i].e;
                                     ^
0_0_33576333_6868.cpp:22:24: error: request for member 's' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
             if(time[i].s>=time[k].e){
                        ^
0_0_33576333_6868.cpp:22:35: error: request for member 'e' in '*(time + ((sizetype)k))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
             if(time[i].s>=time[k].e){
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33576333_6868.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h: In instantiation of 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int (*)(long long int*); _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(node, node)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = long long int (*)(long long int*); _Compare = bool (*)(node, node)]'
0_0_33576333_6868.cpp:18:29:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1968:22: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
     std::__lg(__last - __first) * 2,
                      ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-03 22:44:09, Gzip enabled