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_36326850_32736.cpp: In instantiation of 'void IO::write(T) [with T = const char*]':
0_0_36326850_32736.cpp:79:5:   required from 'void IO::write(T, Args ...) [with T = long long int; Args = {const char*}]'
0_0_36326850_32736.cpp:183:22:   required from here
0_0_36326850_32736.cpp:67:20: error: wrong type argument to unary minus
     if (x < 0) x = -x, push('-');  // ¸ºÊýÊä³ö
                    ^
0_0_36326850_32736.cpp:71:22: error: invalid operands of types 'const char*' and 'int' to binary 'operator%'
       sta[top++] = x % 10, x /= 10;
                      ^
0_0_36326850_32736.cpp:71:10: error: array subscript is not an integer
       sta[top++] = x % 10, x /= 10;
          ^
0_0_36326850_32736.cpp:71:30: error: invalid operands of types 'const char*' and 'int' to binary 'operator/'
       sta[top++] = x % 10, x /= 10;
                              ^
0_0_36326850_32736.cpp:71:30: error:   in evaluation of 'operator/=(const char*, int)'
0_0_36326850_32736.cpp:73:25: error: array subscript is not an integer
     while (top) push(sta[--top] + '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-11-23 09:35:51, Gzip enabled