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_38743457_9753.cpp: In function 'void topsort()':
0_0_38743457_9753.cpp:26:21: error: 'in' was not declared in this scope; did you mean 'i'?
   26 |                 if(!in[i]) q.push(i),cnt--;
      |                     ^~
      |                     i
0_0_38743457_9753.cpp:34:25: error: 'in' was not declared in this scope; did you mean 'i'?
   34 |                         in[e[i].to]--;
      |                         ^~
      |                         i
0_0_38743457_9753.cpp:38:44: error: 'kk' was not declared in this scope
   38 |                                 if(cnt==0) kk=1,cout<<e[i].to-1<<endl;
      |                                            ^~
0_0_38743457_9753.cpp: In function 'int main()':
0_0_38743457_9753.cpp:58:25: error: 'in' was not declared in this scope; did you mean 'i'?
   58 |                         in[y+1]++;
      |                         ^~
      |                         i


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-22 14:31:39, Gzip enabled