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_19775730_8740.cpp: In function 'void read(T&)':
0_0_19775730_8740.cpp:18:30: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
  x=0;int f=0;char ch=getchar();
                              ^
0_0_19775730_8740.cpp:18:30: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_19775730_8740.cpp:19:34: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
  while(ch<'0'||ch>'9')ch=getchar();
                                  ^
0_0_19775730_8740.cpp:20:50: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
  while(ch>='0'&&ch<='9')x=x*10+ch-'0',ch=getchar();
                                                  ^
0_0_19775730_8740.cpp: In instantiation of 'void read(T&) [with T = int]':
0_0_19775730_8740.cpp:114:8:   required from here
0_0_19775730_8740.cpp:18:30: error: 'getchar_unlocked' was not declared in this scope
  x=0;int f=0;char ch=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-10-05 06:54:18, Gzip enabled