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_37797362_23684.cpp:55:22: error: 'function' has not been declared
     void solve(int n,function<void(int,int,int,int)> add)
                      ^
0_0_37797362_23684.cpp:55:30: error: expected ',' or '...' before '<' token
     void solve(int n,function<void(int,int,int,int)> add)
                              ^
0_0_37797362_23684.cpp:128:23: error: 'function' has not been declared
     void solve(int &n,function<void(int,int,int,int)> add,bool isLoop[])
                       ^
0_0_37797362_23684.cpp:128:31: error: expected ',' or '...' before '<' token
     void solve(int &n,function<void(int,int,int,int)> add,bool isLoop[])
                               ^
0_0_37797362_23684.cpp: In function 'void tarjan::solve(long long int&, int)':
0_0_37797362_23684.cpp:142:32: error: 'isLoop' was not declared in this scope
                     if(i.w2>0) isLoop[scc[u]]=1;
                                ^
0_0_37797362_23684.cpp: In function 'void solve()':
0_0_37797362_23684.cpp:220:31: error: invalid conversion from 'void (*)(long long int, long long int, long long int, long long int)' to 'int' [-fpermissive]
     djstl::solve(n,tarjan::add);
                               ^
0_0_37797362_23684.cpp:55:10: note: initializing argument 2 of 'void djstl::solve(long long int, int)'
     void solve(int n,function<void(int,int,int,int)> add)
          ^
0_0_37797362_23684.cpp:221:43: error: invalid conversion from 'void (*)(long long int, long long int, long long int, long long int)' to 'int' [-fpermissive]
     tarjan::solve(n,topo::add,topo::isLoop);
                                           ^
0_0_37797362_23684.cpp:221:43: error: too many arguments to function 'void tarjan::solve(long long int&, int)'
0_0_37797362_23684.cpp:128:10: note: declared here
     void solve(int &n,function<void(int,int,int,int)> add,bool isLoop[])
          ^


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-11-29 19:32:03, Gzip enabled