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_18383151_16388.cpp: In function 'bool Read(K&)':
0_0_18383151_16388.cpp:12:20: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
   char c = getchar();
                    ^
0_0_18383151_16388.cpp:12:20: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_18383151_16388.cpp:13:46: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
   for(in = 0;c < '0' || c > '9'; c = getchar()) if(c == EOF) return false;
                                              ^
0_0_18383151_16388.cpp:14:44: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
   for( ; c >= '0' && c <= '9'; c = getchar()) in = in * 10 + c - '0';
                                            ^
0_0_18383151_16388.cpp: In function 'void Write(K)':
0_0_18383151_16388.cpp:25:39: error: there are no arguments to 'putchar_unlocked' that depend on a template parameter, so a declaration of 'putchar_unlocked' must be available [-fpermissive]
   while(top) putchar(fout[top--] + '0');
                                       ^
0_0_18383151_16388.cpp:26:15: error: there are no arguments to 'putchar_unlocked' that depend on a template parameter, so a declaration of 'putchar_unlocked' must be available [-fpermissive]
   putchar('\n');
               ^
0_0_18383151_16388.cpp: In instantiation of 'void Write(K) [with K = long long unsigned int]':
0_0_18383151_16388.cpp:129:14:   required from here
0_0_18383151_16388.cpp:25:39: error: 'putchar_unlocked' was not declared in this scope
   while(top) putchar(fout[top--] + '0');
                                       ^
0_0_18383151_16388.cpp:26:15: error: 'putchar_unlocked' was not declared in this scope
   putchar('\n');
               ^
0_0_18383151_16388.cpp: In instantiation of 'bool Read(K&) [with K = long long unsigned int]':
0_0_18383151_16388.cpp:140:15:   required from here
0_0_18383151_16388.cpp:12:20: error: 'getchar_unlocked' was not declared in this scope
   char 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 04:01:33, Gzip enabled