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_39341934_14729.cpp: In function 'int read()':
0_0_39341934_14729.cpp:3:14: error: 'getchar' was not declared in this scope
    3 |     char c = getchar();
      |              ^~~~~~~
0_0_39341934_14729.cpp:1:1: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | inline int read() {
0_0_39341934_14729.cpp:4:13: error: 'isdigit' was not declared in this scope
    4 |     while (!isdigit(c)) {if (c == '-') f = -1; c = getchar();}
      |             ^~~~~~~
0_0_39341934_14729.cpp:5:12: error: 'isdigit' was not declared in this scope
    5 |     while (isdigit(c)) x = (x << 1) + (x << 3) + (c ^ '0'), c = getchar();
      |            ^~~~~~~


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-12-02 02:53:59, Gzip enabled