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_38770560_17358.cpp: In function 'void read(T&)':
0_0_38770560_17358.cpp:34:18: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
   34 |  #define getchar getchar_unlocked
      |                  ^~~~~~~~~~~~~~~~
0_0_38770560_17358.cpp:48:16: note: in expansion of macro 'getchar'
   48 | x=0;REG char c=getchar();/*REG T fl=1;*/
      |                ^~~~~~~
0_0_38770560_17358.cpp:34:18: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
   34 |  #define getchar getchar_unlocked
      |                  ^~~~~~~~~~~~~~~~
0_0_38770560_17358.cpp:48:16: note: in expansion of macro 'getchar'
   48 | x=0;REG char c=getchar();/*REG T fl=1;*/
      |                ^~~~~~~
0_0_38770560_17358.cpp:34:18: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
   34 |  #define getchar getchar_unlocked
      |                  ^~~~~~~~~~~~~~~~
0_0_38770560_17358.cpp:49:45: note: in expansion of macro 'getchar'
   49 | while(c<'0'||c>'9'){/*if(c == '-')fl=-1;*/c=getchar();}
      |                                             ^~~~~~~
0_0_38770560_17358.cpp:34:18: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
   34 |  #define getchar getchar_unlocked
      |                  ^~~~~~~~~~~~~~~~
0_0_38770560_17358.cpp:50:45: note: in expansion of macro 'getchar'
   50 | while('/'<c&&c<':'){x=(x<<3)+(x<<1)+c-'0';c=getchar();}/*x*=fl;*/}
      |                                             ^~~~~~~
0_0_38770560_17358.cpp: In instantiation of 'void read(T&) [with T = long long int]':
0_0_38770560_17358.cpp:208:9:   required from here
0_0_38770560_17358.cpp:48:23: error: 'getchar_unlocked' was not declared in this scope; did you mean '_getchar_nolock'?
   48 | x=0;REG char c=getchar();/*REG T fl=1;*/
      |                       ^


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-30 00:31:36, Gzip enabled