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_22131445_8982.cpp: In function 'char fastIO::nc()':
0_0_22131445_8982.cpp:20:25: error: invalid operands of types 'char*' and 'int' to binary 'operator<<'
     #define BUF_SIZE 1<<15
                         ^
0_0_22131445_8982.cpp:26:43: note: in expansion of macro 'BUF_SIZE'
         static char buf[BUF_SIZE],*p1=buf+BUF_SIZE,*pend=buf+BUF_SIZE;
                                           ^
0_0_22131445_8982.cpp:27:17: error: 'pend' was not declared in this scope
         if (p1==pend){
                 ^
0_0_22131445_8982.cpp: In constructor 'fastIO::Ostream_fwrite::Ostream_fwrite()':
0_0_22131445_8982.cpp:20:25: error: invalid operands of types 'char*' and 'int' to binary 'operator<<'
     #define BUF_SIZE 1<<15
                         ^
0_0_22131445_8982.cpp:124:65: note: in expansion of macro 'BUF_SIZE'
         Ostream_fwrite(){buf=new char[BUF_SIZE];p1=buf;pend=buf+BUF_SIZE;}
                                                                 ^


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 04:53:25, Gzip enabled