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_37851162_1437.cpp: In function 'int main()':
0_0_37851162_1437.cpp:38:12: error: expected unqualified-id before '[' token
   for(auto&[l,r]:rng){cin>>l>>r;r++;}
            ^
0_0_37851162_1437.cpp:38:12: error: expected ';' before '[' token
0_0_37851162_1437.cpp:38:13: error: capture of non-variable 'int l(pii&)' 
   for(auto&[l,r]:rng){cin>>l>>r;r++;}
             ^
0_0_37851162_1437.cpp:9:5: note: 'int l(pii&)' declared here
 int l(pii&a){return a.first;};
     ^
0_0_37851162_1437.cpp:38:15: error: capture of non-variable 'int r(pii&)' 
   for(auto&[l,r]:rng){cin>>l>>r;r++;}
               ^
0_0_37851162_1437.cpp:10:5: note: 'int r(pii&)' declared here
 int r(pii&a){return a.second;};
     ^
0_0_37851162_1437.cpp: In lambda function:
0_0_37851162_1437.cpp:38:17: error: expected '{' before ':' token
   for(auto&[l,r]:rng){cin>>l>>r;r++;}
                 ^
0_0_37851162_1437.cpp: In function 'int main()':
0_0_37851162_1437.cpp:38:17: error: expected ';' before ':' token
0_0_37851162_1437.cpp:38:17: error: expected primary-expression before ':' token
0_0_37851162_1437.cpp:38:17: error: expected ')' before ':' token
0_0_37851162_1437.cpp:38:17: error: expected primary-expression before ':' token
0_0_37851162_1437.cpp:39:27: error: 'sort' was not declared in this scope
   sort(begin(rng),end(rng));
                           ^
0_0_37851162_1437.cpp:43:12: error: expected unqualified-id before '[' token
   for(auto&[l,r]:rng)
            ^
0_0_37851162_1437.cpp:43:12: error: expected ';' before '[' token
0_0_37851162_1437.cpp:43:13: error: capture of non-variable 'int l(pii&)' 
   for(auto&[l,r]:rng)
             ^
0_0_37851162_1437.cpp:9:5: note: 'int l(pii&)' declared here
 int l(pii&a){return a.first;};
     ^
0_0_37851162_1437.cpp:43:15: error: capture of non-variable 'int r(pii&)' 
   for(auto&[l,r]:rng)
               ^
0_0_37851162_1437.cpp:10:5: note: 'int r(pii&)' declared here
 int r(pii&a){return a.second;};
     ^
0_0_37851162_1437.cpp: In lambda function:
0_0_37851162_1437.cpp:43:17: error: expected '{' before ':' token
   for(auto&[l,r]:rng)
                 ^
0_0_37851162_1437.cpp: In function 'int main()':
0_0_37851162_1437.cpp:43:17: error: expected ';' before ':' token
0_0_37851162_1437.cpp:43:17: error: expected primary-expression before ':' token
0_0_37851162_1437.cpp:43:17: error: expected ')' before ':' token
0_0_37851162_1437.cpp:43:17: error: expected primary-expression before ':' token


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-09-29 00:58:49, Gzip enabled