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_25384594_6618.cpp: In function 'bool scan_d(T&)':
0_0_25384594_6618.cpp:73:17: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
  if(c = getchar(), c == EOF)return false;
                 ^
0_0_25384594_6618.cpp:73:17: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_25384594_6618.cpp:74:53: 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(c != '-' && (c < '0' || c > '9'))c = getchar();
                                                     ^
0_0_25384594_6618.cpp:77: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]
  while(c = getchar(), c >= '0' && c <= '9')
                    ^
0_0_25384594_6618.cpp: In function 'bool scan_ch(char&)':
0_0_25384594_6618.cpp:94:18: error: 'getchar_unlocked' was not declared in this scope
  if(ch = getchar(), ch == EOF)return false;
                  ^
0_0_25384594_6618.cpp:95:45: error: 'getchar_unlocked' was not declared in this scope
  while(ch == ' ' || ch == '\n')ch = getchar();
                                             ^
0_0_25384594_6618.cpp: In function 'void out_number(ll)':
0_0_25384594_6618.cpp:103:14: error: 'putchar_unlocked' was not declared in this scope
   putchar('-');
              ^
0_0_25384594_6618.cpp:108:22: error: 'putchar_unlocked' was not declared in this scope
  putchar(x % 10 + '0');
                      ^
0_0_25384594_6618.cpp: In function 'int main()':
0_0_25384594_6618.cpp:228:21: error: 'putchar_unlocked' was not declared in this scope
          putchar(' ');
                     ^
0_0_25384594_6618.cpp: In instantiation of 'bool scan_d(T&) [with T = int]':
0_0_25384594_6618.cpp:175:14:   required from here
0_0_25384594_6618.cpp:73:17: error: 'getchar_unlocked' was not declared in this scope
  if(c = getchar(), c == EOF)return false;
                 ^
0_0_25384594_6618.cpp:74:53: error: 'getchar_unlocked' was not declared in this scope
  while(c != '-' && (c < '0' || c > '9'))c = getchar();
                                                     ^
0_0_25384594_6618.cpp:77:20: error: 'getchar_unlocked' was not declared in this scope
  while(c = getchar(), c >= '0' && c <= '9')
                    ^


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-07-01 14:58:07, Gzip enabled