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_27414122_17418.cpp: In function 'int main()':
0_0_27414122_17418.cpp:6:31: error: 'strlen' was not declared in this scope
         for(int i=0;i<strlen(A);i++)  {
                               ^
0_0_27414122_17418.cpp:7:72: error: 'pow' was not declared in this scope
             if(A[i]<='9'&&A[i]>='0') C+=(A[i]-'0')*pow(16,strlen(A)-i-1);
                                                                        ^
0_0_27414122_17418.cpp:8:80: error: 'pow' was not declared in this scope
             else if(A[i]>='A'&&A[i]<='E') C+=(A[i]-'A'+10)*pow(16,strlen(A)-i-1);
                                                                                ^
0_0_27414122_17418.cpp:9:80: error: 'pow' was not declared in this scope
             else if(A[i]>='a'&&A[i]<='e') C+=(A[i]-'a'+10)*pow(16,strlen(A)-i-1);
                                                                                ^
0_0_27414122_17418.cpp:11:31: error: 'strlen' was not declared in this scope
         for(int i=0;i<strlen(B);i++)  {
                               ^
0_0_27414122_17418.cpp:12:72: error: 'pow' was not declared in this scope
             if(B[i]<='9'&&B[i]>='0') C+=(B[i]-'0')*pow(16,strlen(B)-i-1);
                                                                        ^
0_0_27414122_17418.cpp:13:80: error: 'pow' was not declared in this scope
             else if(B[i]>='A'&&B[i]<='E') C+=(B[i]-'A'+10)*pow(16,strlen(B)-i-1);
                                                                                ^
0_0_27414122_17418.cpp:14:80: error: 'pow' was not declared in this scope
             else if(B[i]>='a'&&B[i]<='e') C+=(B[i]-'a'+10)*pow(16,strlen(B)-i-1);
                                                                                ^


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-28 01:23:21, Gzip enabled