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_36587406_22701.cpp: In function 'int main()':
0_0_36587406_22701.cpp:195:21: error: no matching function for call to 'In(int&, int&, char*)'
     while(In(n,q,s+1),n!=-1)
                     ^
0_0_36587406_22701.cpp:195:21: note: candidates are:
0_0_36587406_22701.cpp:66:10: note: template<class T> void IO::In(T*, int)
     void In(T *a, const int n) { for (int i = 0; i < n; ++i)In(*(a + i)); }
          ^
0_0_36587406_22701.cpp:66:10: note:   template argument deduction/substitution failed:
0_0_36587406_22701.cpp:195:21: note:   mismatched types 'T*' and 'int'
     while(In(n,q,s+1),n!=-1)
                     ^
0_0_36587406_22701.cpp:62:10: note: void IO::In(T&, Args& ...) [with T = int; Args = {int, char*}]
     void In(T &x, Args &...args) { In(x), In(args...); }
          ^
0_0_36587406_22701.cpp:62:10: note:   no known conversion for argument 3 from 'char*' to 'char*&'
0_0_36587406_22701.cpp:58:10: note: template<class T> void IO::In(T&)
     void In(T &x) { x = read<T>(); }
          ^
0_0_36587406_22701.cpp:58:10: note:   template argument deduction/substitution failed:
0_0_36587406_22701.cpp:195:21: note:   candidate expects 1 argument, 3 provided
     while(In(n,q,s+1),n!=-1)
                     ^
0_0_36587406_22701.cpp:54:10: note: void IO::In(double&)
     void In(double &x) { x = readDouble(); }
          ^
0_0_36587406_22701.cpp:54:10: note:   candidate expects 1 argument, 3 provided
0_0_36587406_22701.cpp:47:10: note: void IO::In(char*)
     void In(char *a) {
          ^
0_0_36587406_22701.cpp:47:10: note:   candidate expects 1 argument, 3 provided
0_0_36587406_22701.cpp:41:10: note: void IO::In(char&)
     void In(char &a) {
          ^
0_0_36587406_22701.cpp:41:10: note:   candidate expects 1 argument, 3 provided


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-23 08:38:58, Gzip enabled