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_38770574_22815.cpp: In function 'void read(T&)':
0_0_38770574_22815.cpp:30: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]
   30 |  #define getchar getchar_unlocked
      |                  ^~~~~~~~~~~~~~~~
0_0_38770574_22815.cpp:44:16: note: in expansion of macro 'getchar'
   44 | x=0;REG char c=getchar();/*REG T fl=1;*/
      |                ^~~~~~~
0_0_38770574_22815.cpp:30:18: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
   30 |  #define getchar getchar_unlocked
      |                  ^~~~~~~~~~~~~~~~
0_0_38770574_22815.cpp:44:16: note: in expansion of macro 'getchar'
   44 | x=0;REG char c=getchar();/*REG T fl=1;*/
      |                ^~~~~~~
0_0_38770574_22815.cpp:30: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]
   30 |  #define getchar getchar_unlocked
      |                  ^~~~~~~~~~~~~~~~
0_0_38770574_22815.cpp:45:45: note: in expansion of macro 'getchar'
   45 | while(c<'0'||c>'9'){/*if(c == '-')fl=-1;*/c=getchar();}
      |                                             ^~~~~~~
0_0_38770574_22815.cpp:30: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]
   30 |  #define getchar getchar_unlocked
      |                  ^~~~~~~~~~~~~~~~
0_0_38770574_22815.cpp:46:45: note: in expansion of macro 'getchar'
   46 | while('/'<c&&c<':'){x=(x<<3)+(x<<1)+c-'0';c=getchar();}/*x*=fl;*/}
      |                                             ^~~~~~~
0_0_38770574_22815.cpp: In function 'int main()':
0_0_38770574_22815.cpp:51:9: error: 'cout' was not declared in this scope
   51 |         cout<<"rnm再不让我交就把你砸了";
      |         ^~~~


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 04:13:08, Gzip enabled