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_37770044_31219.cpp: In function 'void IO::input(T& ...)':
0_0_37770044_31219.cpp:4:65: error: expected primary-expression before '...' token
     template <typename ...T> void input(T&... t) { ((cin >> t), ...); }
                                                                 ^
0_0_37770044_31219.cpp:4:65: error: expected ')' before '...' token
0_0_37770044_31219.cpp:4:69: error: parameter packs not expanded with '...':
     template <typename ...T> void input(T&... t) { ((cin >> t), ...); }
                                                                     ^
0_0_37770044_31219.cpp:4:69: note:         't'
0_0_37770044_31219.cpp: In function 'void IO::print(const U&, const T& ...)':
0_0_37770044_31219.cpp:8:112: error: expected primary-expression before '...' token
     template <typename U,typename ...T> void print(const U& u,const T&... t) { cout << u , ((cout << SEP << t),... ) << END; }
                                                                                                                ^
0_0_37770044_31219.cpp:8:112: error: expected ')' before '...' token
0_0_37770044_31219.cpp:8:124: error: parameter packs not expanded with '...':
     template <typename U,typename ...T> void print(const U& u,const T&... t) { cout << u , ((cout << SEP << t),... ) << END; }
                                                                                                                            ^
0_0_37770044_31219.cpp:8:124: note:         't'


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-10-06 12:19:47, Gzip enabled