0_0_38492675_29206.cpp: In function 'void toposort()':
0_0_38492675_29206.cpp:20:13: error: lvalue required as decrement operand
in[next]--;
^
0_0_38492675_29206.cpp: In function 'int main()':
0_0_38492675_29206.cpp:34:16: error: lvalue required as increment operand
in[temp.to]++;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_38492675_29206.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h: In instantiation of 'typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type std::__fill_a(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = int (*)[1005]; _Tp = int; typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type = void]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:740:14: required from 'void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = int (*)[1005]; _Tp = int]'
0_0_38492675_29206.cpp:28:21: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:704:11: error: incompatible types in assignment of 'const int' to 'int [1005]'
*__first = __tmp;
^
|