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_38337257_5821.cpp:37:34: error: 'nve' function uses 'auto' type specifier without trailing return type
 auto nve(size_t n, Args &&...args) {
                                  ^
0_0_38337257_5821.cpp:37:34: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_38337257_5821.cpp: In function 'auto nve(size_t, Args&& ...)':
0_0_38337257_5821.cpp:38:6: error: expected '(' before 'constexpr'
   if constexpr (sizeof...(args) == 1) {
      ^
0_0_38337257_5821.cpp:40:5: error: 'else' without a previous 'if'
   } else {
     ^
0_0_38337257_5821.cpp:41:18: error: missing template arguments before '(' token
     return vector(n, nve(args...));
                  ^


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-06-26 20:52:19, Gzip enabled