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_16372968_31036.cpp: In instantiation of 'bool read(T&) [with T = char [20]]':
0_0_16372968_31036.cpp:100:10:   required from here
0_0_16372968_31036.cpp:76:4: error: incompatible types in assignment of 'int' to 'char [20]'
  x = 0; int sgn = 1;
    ^
0_0_16372968_31036.cpp:78:33: error: incompatible types in assignment of 'int' to 'char [20]'
  if (CH == '-')sgn = -1; else x = CH ^ 48;
                                 ^
0_0_16372968_31036.cpp:79:52: error: invalid operands of types 'char [20]' and 'int' to binary 'operator<<'
  while (CH = getc(), isdigit(CH))x = (x << 3) + (x << 1) + (CH ^ 48);
                                                    ^
0_0_16372968_31036.cpp:79:41: error: invalid operands of types 'char [20]' and 'int' to binary 'operator<<'
  while (CH = getc(), isdigit(CH))x = (x << 3) + (x << 1) + (CH ^ 48);
                                         ^
0_0_16372968_31036.cpp:80:4: error: invalid operands of types 'char [20]' and 'int' to binary 'operator*'
  x *= sgn;
    ^
0_0_16372968_31036.cpp:80:4: error:   in evaluation of 'operator*=(char [20], 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-09-28 06:20:59, Gzip enabled