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_16697782_1715.cpp:4:11: error: 'a' was not declared in this scope
 int sort (a,a+l);
           ^
0_0_16697782_1715.cpp:4:13: error: 'a' was not declared in this scope
 int sort (a,a+l);
             ^
0_0_16697782_1715.cpp:4:15: error: 'l' was not declared in this scope
 int sort (a,a+l);
               ^
0_0_16697782_1715.cpp:4:16: error: expression list treated as compound expression in initializer [-fpermissive]
 int sort (a,a+l);
                ^
0_0_16697782_1715.cpp: In function 'int main()':
0_0_16697782_1715.cpp:13:9: error: 'l' was not declared in this scope
         l=strlen(a);
         ^
0_0_16697782_1715.cpp:13:19: error: cannot convert 'int*' to 'const char*' for argument '1' to 'size_t strlen(const char*)'
         l=strlen(a);
                   ^
0_0_16697782_1715.cpp:14:19: error: 'sort' cannot be used as a function
         sort(a,a+l);
                   ^


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-07-06 13:47:49, Gzip enabled