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_37307703_14808.cpp:12:23: error: 'min' function uses 'auto' type specifier without trailing return type
 auto min(auto l,auto r){return l<r?l:r;}
                       ^
0_0_37307703_14808.cpp:12:23: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_37307703_14808.cpp:13:23: error: 'max' function uses 'auto' type specifier without trailing return type
 auto max(auto l,auto r){return l>r?l:r;}
                       ^
0_0_37307703_14808.cpp:13:23: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_37307703_14808.cpp: In function 'int main()':
0_0_37307703_14808.cpp:46:18: error: expected unqualified-id before '[' token
         for(auto [x,y]:q)
                  ^
0_0_37307703_14808.cpp:46:18: error: expected ';' before '[' token
0_0_37307703_14808.cpp:46:19: error: 'x' was not declared in this scope
         for(auto [x,y]:q)
                   ^
0_0_37307703_14808.cpp:46:21: error: 'y' was not declared in this scope
         for(auto [x,y]:q)
                     ^
0_0_37307703_14808.cpp: In lambda function:
0_0_37307703_14808.cpp:46:23: error: expected '{' before ':' token
         for(auto [x,y]:q)
                       ^
0_0_37307703_14808.cpp: In function 'int main()':
0_0_37307703_14808.cpp:46:23: error: expected ';' before ':' token
0_0_37307703_14808.cpp:46:23: error: expected primary-expression before ':' token
0_0_37307703_14808.cpp:46:23: error: expected ')' before ':' token
0_0_37307703_14808.cpp:46:23: 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-11-25 16:34:40, Gzip enabled