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_37975977_7369.cpp: In function 'void IO::input(T& ...)':
0_0_37975977_7369.cpp:4:70: error: expected primary-expression before '...' token
     template <typename ...T> void input(T&... t) { ((std::cin >> t), ...); }
                                                                      ^
0_0_37975977_7369.cpp:4:70: error: expected ')' before '...' token
0_0_37975977_7369.cpp:4:74: error: parameter packs not expanded with '...':
     template <typename ...T> void input(T&... t) { ((std::cin >> t), ...); }
                                                                          ^
0_0_37975977_7369.cpp:4:74: note:         't'
0_0_37975977_7369.cpp: In function 'void IO::print(const U&, const T& ...)':
0_0_37975977_7369.cpp:8:122: error: expected primary-expression before '...' token
     template <typename U,typename ...T> void print(const U& u,const T&... t) { std::cout << u , ((std::cout << SEP << t),... ) << END; }
                                                                                                                          ^
0_0_37975977_7369.cpp:8:122: error: expected ')' before '...' token
0_0_37975977_7369.cpp:8:134: error: parameter packs not expanded with '...':
     template <typename U,typename ...T> void print(const U& u,const T&... t) { std::cout << u , ((std::cout << SEP << t),... ) << END; }
                                                                                                                                      ^
0_0_37975977_7369.cpp:8:134: 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-11-26 07:10:36, Gzip enabled