0_0_36598674_27157.cpp:11:12: error: 'Time time [90000]' redeclared as different kind of symbol
}time[90000];
^
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++/bits/locale_facets_nonio.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/locale:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iomanip:43,
from 0_0_36598674_27157.cpp:2:
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_36598674_27157.cpp: In function 'int main()':
0_0_36598674_27157.cpp:33:11: error: request for member 'ss' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
time[i].ss=t;
^
0_0_36598674_27157.cpp:34:11: error: request for member 'shun' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
time[i].shun=shun;
^
0_0_36598674_27157.cpp:35:11: error: request for member 'ni' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
time[i].ni=ni;
^
0_0_36598674_27157.cpp:41:21: error: request for member 'shun' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
sh=min(sh,time[i].shun);
^
0_0_36598674_27157.cpp:42:21: error: request for member 'ni' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
ni=min(ni,time[i].ni);
^
0_0_36598674_27157.cpp:43:21: error: request for member 'shun' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
sn=min(sn,time[i].shun+time[(i+1+n)%n].ni);
^
0_0_36598674_27157.cpp:43:42: error: request for member 'ni' in '*(time + ((sizetype)(((i + 1) + n) % n)))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
sn=min(sn,time[i].shun+time[(i+1+n)%n].ni);
^
0_0_36598674_27157.cpp:44:21: error: request for member 'ni' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
ns=min(ns,time[i].ni+time[(i-1+n)%n].shun);
^
0_0_36598674_27157.cpp:44:40: error: request for member 'shun' in '*(time + ((sizetype)(((i + -1) + n) % n)))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
ns=min(ns,time[i].ni+time[(i-1+n)%n].shun);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_36598674_27157.cpp:6:
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 (*)(Time, Time)>]':
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 (*)(Time, Time)]'
0_0_36598674_27157.cpp:37:22: 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,
^
|