0_0_38492665_25181.cpp: In function 'void toposort()':
0_0_38492665_25181.cpp:13:26: error: 't' was not declared in this scope
if(in[i]==0) q.push(i),t[i]=1;
^
0_0_38492665_25181.cpp:16:19: error: invalid use of member (did you forget the '&' ?)
FOR(i,0,G[now].size){
^
0_0_38492665_25181.cpp:5:44: note: in definition of macro 'FOR'
#define FOR(i , l , r) for(int i = l ; i < r ; i ++)
^
0_0_38492665_25181.cpp:18:5: error: 't' was not declared in this scope
t[next]=max(t[next],t[now]+w); //权值
^
0_0_38492665_25181.cpp:19:13: error: lvalue required as decrement operand
in[next]--;//删边(就是入度少一个)
^
0_0_38492665_25181.cpp: In function 'int main()':
0_0_38492665_25181.cpp:27:23: error: 'memset' was not declared in this scope
memset(in,in+1005,0);
^
0_0_38492665_25181.cpp:28:11: error: 't' was not declared in this scope
memset(t,t+1005,0);
^
0_0_38492665_25181.cpp:33:16: error: lvalue required as increment operand
in[temp.to]++;
^
|