F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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]++;
                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-17 08:44:46, Gzip enabled