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_38566880_31934.cpp: In function 'void stern(int)':
0_0_38566880_31934.cpp:10:28: error: void value not ignored as it ought to be
   10 |                 {s[x]=stern(s[x]);}
      |                       ~~~~~^~~~~~
0_0_38566880_31934.cpp:11:27: error: return-statement with a value, in function returning 'void' [-fpermissive]
   11 |                 return s[x];}
      |                        ~~~^
0_0_38566880_31934.cpp: In function 'void merge(int, int)':
0_0_38566880_31934.cpp:13:25: error: void value not ignored as it ought to be
   13 |                 {x=stern(x);
      |                    ~~~~~^~~
0_0_38566880_31934.cpp:14:32: error: void value not ignored as it ought to be
   14 |                         y=stern(y);
      |                           ~~~~~^~~
0_0_38566880_31934.cpp: In function 'int main()':
0_0_38566880_31934.cpp:20:14: error: expected primary-expression before ';' token
   20 |         cin>>;
      |              ^


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-10-05 07:24:52, Gzip enabled