0_0_28014020_9599.cpp:4:22: error: 'int time [9000]' redeclared as different kind of symbol
int n, m, time[ 9000 ], times, note[ 9000 ];
^
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_28014020_9599.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_28014020_9599.cpp: In function 'void init()':
0_0_28014020_9599.cpp:12:15: error: assignment of function 'time_t time(time_t*)'
time[ 0 ] = -1; time[ 1 ] = 0;
^
0_0_28014020_9599.cpp:12:15: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28014020_9599.cpp:12:31: error: assignment of read-only location '*(time + 1u)'
time[ 0 ] = -1; time[ 1 ] = 0;
^
0_0_28014020_9599.cpp:12:31: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28014020_9599.cpp:19:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ( t - 2 > time[ times - 1 ] )
^
0_0_28014020_9599.cpp:20:29: error: assignment of read-only location '*(time + ((sizetype)(times ++)))'
time[ times++ ] = t - 2;
^
0_0_28014020_9599.cpp:20:29: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28014020_9599.cpp:21:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ( t - 1 > time[ times - 1 ] )
^
0_0_28014020_9599.cpp:22:29: error: assignment of read-only location '*(time + ((sizetype)(times ++)))'
time[ times++ ] = t - 1;
^
0_0_28014020_9599.cpp:22:29: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28014020_9599.cpp:23:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ( t > time[ times - 1 ] )
^
0_0_28014020_9599.cpp:25:27: error: assignment of read-only location '*(time + ((sizetype)times))'
time[ times ] = t;
^
0_0_28014020_9599.cpp:25:27: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28014020_9599.cpp:28:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ( t == time[ times - 3 ] )
^
0_0_28014020_9599.cpp:30:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ( t == time[ times - 2 ] )
^
0_0_28014020_9599.cpp:32:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ( t == time[ times - 1 ] )
^
0_0_28014020_9599.cpp:34:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ( t == time[ times - 1 ] && t + 1 <= n )
^
0_0_28014020_9599.cpp:35:29: error: assignment of read-only location '*(time + ((sizetype)(times ++)))'
time[ times++ ] = t + 1;
^
0_0_28014020_9599.cpp:35:29: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28014020_9599.cpp:36:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ( t + 1 == time[ times - 1 ] && t + 2 <= n )
^
0_0_28014020_9599.cpp:37:29: error: assignment of read-only location '*(time + ((sizetype)(times ++)))'
time[ times++ ] = t + 2;
^
0_0_28014020_9599.cpp:37:29: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
|