0_0_32307666_32130.cpp:11:18: error: 'int time [200]' redeclared as different kind of symbol
int low[N],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_32307666_32130.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_32307666_32130.cpp: In function 'bool spfa(int)':
0_0_32307666_32130.cpp:33:17: error: assignment of read-only location '*(time + ((sizetype)i))'
time[i] = 0;
^
0_0_32307666_32130.cpp:33:17: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_32307666_32130.cpp:36:12: error: lvalue required as increment operand
time[s]++;
^
0_0_32307666_32130.cpp:37:5: error: 'queue' was not declared in this scope
queue<int> q;
^
0_0_32307666_32130.cpp:37:5: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_32307666_32130.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note: 'std::queue'
class queue
^
0_0_32307666_32130.cpp:37:11: error: expected primary-expression before 'int'
queue<int> q;
^
0_0_32307666_32130.cpp:38:5: error: 'q' was not declared in this scope
q.push(s);
^
0_0_32307666_32130.cpp:50:31: error: lvalue required as increment operand
if(time[v]++>n+1) return false;
^
|