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_14143364_25810.cpp: In function 'bool read(int&)':
0_0_14143364_25810.cpp:5:9: error: 'ch' was not declared in this scope
  for (++ch; (*ch) && !(((*ch) >= '0' && (*ch) <= '9') || (*ch) == '-' ); ++ch);
         ^
0_0_14143364_25810.cpp:6:8: error: 'ch' was not declared in this scope
  if(!(*ch)) return false;
        ^
0_0_14143364_25810.cpp:8:7: error: 'ch' was not declared in this scope
  if((*ch) == '-') { sign = 1; ++ch; }
       ^
0_0_14143364_25810.cpp:9:22: error: 'ch' was not declared in this scope
  for (x = 0; '0' <= *ch; ch++) x = x * 10 + *ch - '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-26 16:49:40, Gzip enabled