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_20532604_5457.cpp: In function 'int main()':
0_0_20532604_5457.cpp:54:28: error: no post-increment operator for type
                     s[count++]=x+'0';
                            ^
0_0_20532604_5457.cpp:57:22: error: invalid operands of types 'char [12]' and '<unresolved overloaded function type>' to binary 'operator+'
             sort(s,s+count);
                      ^
0_0_20532604_5457.cpp:60:31: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
             for(i=0; i<=count-1; i++)
                               ^
0_0_20532604_5457.cpp:76:28: error: no post-increment operator for type
                     s[count++]=x+'0';
                            ^
0_0_20532604_5457.cpp:79:22: error: invalid operands of types 'char [12]' and '<unresolved overloaded function type>' to binary 'operator+'
             sort(s,s+count);
                      ^
0_0_20532604_5457.cpp:82:31: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
             for(i=0; i<=count-1; i++)
                               ^
0_0_20532604_5457.cpp:100:32: error: no post-increment operator for type
                         s[count++]=x+'0';
                                ^
0_0_20532604_5457.cpp:103:26: error: invalid operands of types 'char [12]' and '<unresolved overloaded function type>' to binary 'operator+'
                 sort(s,s+count);
                          ^
0_0_20532604_5457.cpp:106:35: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
                 for(i=0; i<=count-1; i++)
                                   ^
0_0_20532604_5457.cpp:122:32: error: no post-increment operator for type
                         s[count++]=x+'0';
                                ^
0_0_20532604_5457.cpp:125:26: error: invalid operands of types 'char [12]' and '<unresolved overloaded function type>' to binary 'operator+'
                 sort(s,s+count);
                          ^
0_0_20532604_5457.cpp:129:35: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
                 for(i=0; i<=count-1; i++)
                                   ^
0_0_20532604_5457.cpp:133:38: error: 'x' was not declared in this scope
                     else printf("%c",x+'0');
                                      ^


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-12-02 02:02:52, Gzip enabled