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_38758398_30199.cpp: In function 'long long int read()':
0_0_38758398_30199.cpp:20:37: error: 'getchar' was not declared in this scope
   20 | inline LL read(){LL x=0,f=1;char ch=getchar();
      |                                     ^~~~~~~
0_0_38758398_30199.cpp:1:1: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | 
0_0_38758398_30199.cpp: In function 'void print(const T&, const Ts& ...)':
0_0_38758398_30199.cpp:25:44: error: 'cout' was not declared in this scope
   25 | void print(const T& arg,const Ts&... args){cout<<arg;print(args...);}
      |                                            ^~~~
0_0_38758398_30199.cpp:1:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | 
0_0_38758398_30199.cpp: In function 'int main()':
0_0_38758398_30199.cpp:74:24: error: 'stdin' was not declared in this scope
   74 |         freopen("","r",stdin);
      |                        ^~~~~
0_0_38758398_30199.cpp:74:24: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_38758398_30199.cpp:74:9: error: 'freopen' was not declared in this scope; did you mean '_fropen'?
   74 |         freopen("","r",stdin);
      |         ^~~~~~~
      |         _fropen
0_0_38758398_30199.cpp:75:24: error: 'stdout' was not declared in this scope
   75 |         freopen("","w",stdout);
      |                        ^~~~~~
0_0_38758398_30199.cpp:75:24: note: 'stdout' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_38758398_30199.cpp:78:14: error: 'std::ios' has not been declared
   78 |         std::ios::sync_with_stdio(false);
      |              ^~~
0_0_38758398_30199.cpp:79:9: error: 'cin' was not declared in this scope
   79 |         cin.tie(nullptr);cout.tie(nullptr);
      |         ^~~
0_0_38758398_30199.cpp:79:9: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38758398_30199.cpp:79:26: error: 'cout' was not declared in this scope
   79 |         cin.tie(nullptr);cout.tie(nullptr);
      |                          ^~~~
0_0_38758398_30199.cpp:79:26: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38758398_30199.cpp:83:9: error: 'cin' was not declared in this scope
   83 |         cin>>T;
      |         ^~~
0_0_38758398_30199.cpp:83:9: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?


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-26 16:30:27, Gzip enabled