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_33695494_7240.cpp: In function 'int main()':
0_0_33695494_7240.cpp:61:5: error: 'function' was not declared in this scope
     function<void(int,int ,ll )>fun1=[&](int u,int pre,ll k)->void{
     ^
0_0_33695494_7240.cpp:61:31: error: expression list treated as compound expression in functional cast [-fpermissive]
     function<void(int,int ,ll )>fun1=[&](int u,int pre,ll k)->void{
                               ^
0_0_33695494_7240.cpp:61:14: error: expected primary-expression before 'void'
     function<void(int,int ,ll )>fun1=[&](int u,int pre,ll k)->void{
              ^
0_0_33695494_7240.cpp:71:26: error: expression list treated as compound expression in functional cast [-fpermissive]
     function<void(int,int)>fun2=[&](int u,int pre)->void{
                          ^
0_0_33695494_7240.cpp:71:14: error: expected primary-expression before 'void'
     function<void(int,int)>fun2=[&](int u,int pre)->void{
              ^
0_0_33695494_7240.cpp:94:16: error: 'fun1' was not declared in this scope
     fun1(1,-1,0);
                ^
0_0_33695494_7240.cpp:95:14: error: 'fun2' was not declared in this scope
     fun2(1,-1);
              ^


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-25 09:28:26, Gzip enabled