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_39341079_8767.cpp: In function 'void file()':
0_0_39341079_8767.cpp:2:35: error: 'stdin' was not declared in this scope
    2 |         freopen("fairlady.in","r",stdin);
      |                                   ^~~~~
0_0_39341079_8767.cpp:1:1: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | inline void file(){
0_0_39341079_8767.cpp:2:9: error: 'freopen' was not declared in this scope
    2 |         freopen("fairlady.in","r",stdin);
      |         ^~~~~~~
0_0_39341079_8767.cpp:3:36: error: 'stdout' was not declared in this scope
    3 |         freopen("fairlady.out","w",stdout);
      |                                    ^~~~~~
0_0_39341079_8767.cpp:3:36: note: 'stdout' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39341079_8767.cpp: At global scope:
0_0_39341079_8767.cpp:6:8: error: 'll' does not name a type
    6 | inline ll read(){
      |        ^~
0_0_39341079_8767.cpp: In function 'int rdstr(char*)':
0_0_39341079_8767.cpp:5:14: error: 'getchar' was not declared in this scope
    5 | #define getc getchar
      |              ^~~~~~~
0_0_39341079_8767.cpp:13:17: note: in expansion of macro 'getc'
   13 |         char ch=getc(); int len(0);
      |                 ^~~~
0_0_39341079_8767.cpp:5:14: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
    5 | #define getc getchar
      |              ^~~~~~~
0_0_39341079_8767.cpp:13:17: note: in expansion of macro 'getc'
   13 |         char ch=getc(); int len(0);
      |                 ^~~~
0_0_39341079_8767.cpp:13:36: error: expected '}' at end of input
   13 |         char ch=getc(); int len(0);
      |                                    ^
0_0_39341079_8767.cpp:12:26: note: to match this '{'
   12 | inline int rdstr(char* s){
      |                          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-03-13 14:01:35, Gzip enabled