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_38908523_2870.cpp: In instantiation of 'io& io::operator<<(T) [with T = const char*]':
0_0_38908523_2870.cpp:221:17:   required from here
0_0_38908523_2870.cpp:44:15: error: ordered comparison of pointer with integer zero ('const char*' and 'int')
   44 |         if (x < 0)
      |             ~~^~~
0_0_38908523_2870.cpp:45:27: error: wrong type argument to unary minus
   45 |             pc('-'), x = -x;
      |                           ^
0_0_38908523_2870.cpp:48:25: error: invalid operands of types 'const char*' and 'int' to binary 'operator%'
   48 |             a[++s] = (x % 10), x /= 10;
      |                      ~~~^~~~~
0_0_38908523_2870.cpp:48:34: error: invalid operands of types 'const char*' and 'int' to binary 'operator/'
   48 |             a[++s] = (x % 10), x /= 10;
      |                                ~~^~~~~
0_0_38908523_2870.cpp:48:34: note:   in evaluation of 'operator/=(const char*, int)'


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-23 00:10:19, Gzip enabled