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_37769952_13174.cpp: In function 'int main()':
0_0_37769952_13174.cpp:37:42: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'char' for argument '1' to 'void calc(char, int&)'
         if (aa.size() == 1) calc(aa, a[1]);
                                          ^
0_0_37769952_13174.cpp:39:40: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'char' for argument '1' to 'void calc(char, int&)'
         if (b.size() == 1) calc(b, a[2]);
                                        ^
0_0_37769952_13174.cpp:41:40: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'char' for argument '1' to 'void calc(char, int&)'
         if (c.size() == 1) calc(c, a[3]);
                                        ^
0_0_37769952_13174.cpp:43:40: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'char' for argument '1' to 'void calc(char, int&)'
         if (d.size() == 1) calc(d, a[4]);
                                        ^


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 02:21:24, Gzip enabled