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_21242635_10008.cpp: In function 'void minus(char*, char*, char*)':
0_0_21242635_10008.cpp:21:24: error: cannot convert 'char**' to 'char*' for argument '1' to 'int getStrLen(char*)'
  int len = getStrLen(&s);
                        ^
0_0_21242635_10008.cpp:22:26: error: cannot convert 'char**' to 'char*' for argument '1' to 'int getStrLen(char*)'
  int len1 = getStrLen(&s1);
                          ^
0_0_21242635_10008.cpp: In function 'void getNewNum(char*, char*)':
0_0_21242635_10008.cpp:72:3: error: 'result' was not declared in this scope
   result = minus(result, "1");
   ^
0_0_21242635_10008.cpp:81:3: error: 'result' was not declared in this scope
   result += num.substring(0, len);
   ^
0_0_21242635_10008.cpp:81:17: error: request for member 'substring' in 'num', which is of non-class type 'char*'
   result += num.substring(0, len);
                 ^
0_0_21242635_10008.cpp: In function 'int main()':
0_0_21242635_10008.cpp:101:17: error: cannot convert 'char (*)[1000]' to 'char*' for argument '1' to 'int getStrLen(char*)'
   getStrLen(&num);
                 ^
0_0_21242635_10008.cpp:103:24: error: cannot convert 'char (*)[1000]' to 'char*' for argument '1' to 'int getStrLen(char*)'
   while (getStrLen(&num) > 1)
                        ^
0_0_21242635_10008.cpp:106:25: error: cannot convert 'char (*)[1000]' to 'char*' for argument '1' to 'void getNewNum(char*, char*)'
    getNewNum(&num, &temp);
                         ^


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-09-20 12:23:10, Gzip enabled