0_0_20035583_5483.cpp:10:8: error: 'Time time [3]' redeclared as different kind of symbol
}time[3];
^
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_20035583_5483.cpp:3:
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_20035583_5483.cpp: In function 'int main()':
0_0_20035583_5483.cpp:29:19: error: request for member 'h' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
cin >> time[i].h >> c >> time[i].m;
^
0_0_20035583_5483.cpp:29:37: error: request for member 'm' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
cin >> time[i].h >> c >> time[i].m;
^
0_0_20035583_5483.cpp:30:12: error: request for member 'a' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
time[i].a = 60 * time[i].h + time[i].m;
^
0_0_20035583_5483.cpp:30:29: error: request for member 'h' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
time[i].a = 60 * time[i].h + time[i].m;
^
0_0_20035583_5483.cpp:30:41: error: request for member 'm' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
time[i].a = 60 * time[i].h + time[i].m;
^
0_0_20035583_5483.cpp:36:16: error: request for member 'a' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
if (time[i].a <= time[(i + 1) % 3].a)
^
0_0_20035583_5483.cpp:36:39: error: request for member 'a' in '*(time + ((sizetype)((i + 1) % 3)))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
if (time[i].a <= time[(i + 1) % 3].a)
^
0_0_20035583_5483.cpp:37:34: error: request for member 'a' in '*(time + ((sizetype)((i + 1) % 3)))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
minus[i] = time[(i + 1) % 3].a - time[i].a;
^
0_0_20035583_5483.cpp:37:46: error: request for member 'a' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
minus[i] = time[(i + 1) % 3].a - time[i].a;
^
0_0_20035583_5483.cpp:39:35: error: request for member 'a' in '*(time + ((sizetype)((i + 1) % 3)))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
minus[i] = (time[(i + 1) % 3].a + 12 * 60) - time[i].a;
^
0_0_20035583_5483.cpp:39:58: error: request for member 'a' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
minus[i] = (time[(i + 1) % 3].a + 12 * 60) - time[i].a;
^
0_0_20035583_5483.cpp:54:47: error: request for member 'h' in '*(time + ((sizetype)j))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
cout << "The correct time is " << time[j].h << ":" << setw(2) << right << setfill('0') << time[j].m << endl;
^
0_0_20035583_5483.cpp:54:103: error: request for member 'm' in '*(time + ((sizetype)j))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
cout << "The correct time is " << time[j].h << ":" << setw(2) << right << setfill('0') << time[j].m << endl;
^
0_0_20035583_5483.cpp:56:47: error: request for member 'h' in '*(time + ((sizetype)j))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
cout << "The correct time is " << time[j].h << ":" << setw(2) << right << setfill('0') << time[j].m << endl;
^
0_0_20035583_5483.cpp:56:103: error: request for member 'm' in '*(time + ((sizetype)j))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
cout << "The correct time is " << time[j].h << ":" << setw(2) << right << setfill('0') << time[j].m << endl;
^
0_0_20035583_5483.cpp:58:47: error: request for member 'h' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
cout << "The correct time is " << time[i].h << ":" << setw(2) << right << setfill('0') << time[i].m << endl;
^
0_0_20035583_5483.cpp:58:103: error: request for member 'm' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) {aka long long int(long long int*)}'
cout << "The correct time is " << time[i].h << ":" << setw(2) << right << setfill('0') << time[i].m << endl;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_20035583_5483.cpp:4:
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_20035583_5483.cpp:32:27: 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,
^
|