0_0_29283063_21905.cpp: In function 'void getindu()':
0_0_29283063_21905.cpp:15:2: error: 'stack' was not declared in this scope
stack<int> q;
^
0_0_29283063_21905.cpp:15:2: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:88,
from 0_0_29283063_21905.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: 'std::stack'
class stack
^
0_0_29283063_21905.cpp:15:8: error: expected primary-expression before 'int'
stack<int> q;
^
0_0_29283063_21905.cpp:17:22: error: 'q' was not declared in this scope
if(indegree[i]==0) q.push(i);
^
0_0_29283063_21905.cpp:18:9: error: 'q' was not declared in this scope
while(!q.empty()){
^
0_0_29283063_21905.cpp:20:3: error: 'cout' was not declared in this scope
cout<<tp<<" ";
^
0_0_29283063_21905.cpp:20:3: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_29283063_21905.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
0_0_29283063_21905.cpp:24:20: error: request for member 'to' in 'indegree[i]', which is of non-class type 'int'
if(!indegree[i].to) q.push(edge[i].to);
^
0_0_29283063_21905.cpp: In function 'int main()':
0_0_29283063_21905.cpp:30:2: error: 'cin' was not declared in this scope
cin>>t;
^
0_0_29283063_21905.cpp:30:2: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_29283063_21905.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
0_0_29283063_21905.cpp:42:9: error: 'next' was not declared in this scope
edge[next]=head[a];
^
0_0_29283063_21905.cpp:42:9: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_29283063_21905.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: 'std::next'
next(_ForwardIterator __x, typename
^
0_0_29283063_21905.cpp:47:9: error: 'cout' was not declared in this scope
if(t) cout<<endl;
^
0_0_29283063_21905.cpp:47:9: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_29283063_21905.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
0_0_29283063_21905.cpp:47:15: error: 'endl' was not declared in this scope
if(t) cout<<endl;
^
0_0_29283063_21905.cpp:47:15: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_29283063_21905.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^
|