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_39403215_10446.cpp: In function 'bool isSkyNumber(int)':
0_0_39403215_10446.cpp:22:13: error: expected initializer before 'Duo'
   22 |     int sum Duo = 0;
      |             ^~~
0_0_39403215_10446.cpp:24:9: error: 'sumDuo' was not declared in this scope; did you mean 'sumDec'?
   24 |         sumDuo += (temp % 10 > 9) ? (temp % 10 - 9) : temp % 10;
      |         ^~~~~~
      |         sumDec
0_0_39403215_10446.cpp:28:44: error: 'sumDuo' was not declared in this scope; did you mean 'sumDec'?
   28 |     return sumDec == 22 && sumHex == 22 && sumDuo == 22;
      |                                            ^~~~~~
      |                                            sumDec


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 01:46:34, Gzip enabled