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_23392519_24976.cpp: In function 'int main()':
0_0_23392519_24976.cpp:36:31: error: cannot convert 'int*' to 'const char*' for argument '2' to 'char* strcpy(char*, const char*)'
       strcpy(strtemp,p[j].name);
                               ^
0_0_23392519_24976.cpp:37:35: error: cannot convert 'int*' to 'char*' for argument '1' to 'char* strcpy(char*, const char*)'
       strcpy(p[j].name,p[j+1].name);
                                   ^
0_0_23392519_24976.cpp:38:33: error: cannot convert 'int*' to 'char*' for argument '1' to 'char* strcpy(char*, const char*)'
       strcpy(p[j+1].name,strtemp);
                                 ^
0_0_23392519_24976.cpp:46:58: error: cannot convert 'int*' to 'const char*' for argument '1' to 'int strcmp(const char*, const char*)'
     if(p[j].sum==p[j+1].sum&&strcmp(p[j].name,p[j+1].name)>0)
                                                          ^
0_0_23392519_24976.cpp:51:31: error: cannot convert 'int*' to 'const char*' for argument '2' to 'char* strcpy(char*, const char*)'
       strcpy(strtemp,p[j].name);
                               ^
0_0_23392519_24976.cpp:52:35: error: cannot convert 'int*' to 'char*' for argument '1' to 'char* strcpy(char*, const char*)'
       strcpy(p[j].name,p[j+1].name);
                                   ^
0_0_23392519_24976.cpp:53:33: error: cannot convert 'int*' to 'char*' for argument '1' to 'char* strcpy(char*, const char*)'
       strcpy(p[j+1].name,strtemp);
                                 ^


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-17 09:25:42, Gzip enabled