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_39408722_29556.cpp:151:9: error: 'pair' does not name a type
  151 | typedef pair<int,int> pii;
      |         ^~~~
0_0_39408722_29556.cpp:153:9: error: 'pair' does not name a type
  153 | typedef pair<ll,int> pli;
      |         ^~~~
0_0_39408722_29556.cpp:154:9: error: 'pair' does not name a type
  154 | typedef pair<int,ll>pil;
      |         ^~~~
0_0_39408722_29556.cpp:155:9: error: 'pair' does not name a type
  155 | typedef pair<ll,ll> pll;
      |         ^~~~
0_0_39408722_29556.cpp: In function 'void read(T&)':
0_0_39408722_29556.cpp:177:14: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
  177 |     while((c=getchar())!=EOF) {
      |              ^~~~~~~
0_0_39408722_29556.cpp:177:14: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_39408722_29556.cpp:177:26: error: 'EOF' was not declared in this scope
  177 |     while((c=getchar())!=EOF) {
      |                          ^~~
0_0_39408722_29556.cpp:1:1: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | // Dynamic Lover
0_0_39408722_29556.cpp: In function 'void open()':
0_0_39408722_29556.cpp:202:27: error: 'stdin' was not declared in this scope
  202 |     freopen("in2.txt","r",stdin);
      |                           ^~~~~
0_0_39408722_29556.cpp:202:27: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39408722_29556.cpp:202:5: error: 'freopen' was not declared in this scope; did you mean 'open'?
  202 |     freopen("in2.txt","r",stdin);
      |     ^~~~~~~
      |     open
0_0_39408722_29556.cpp:203:28: error: 'stdout' was not declared in this scope
  203 |     freopen("out2.txt","w",stdout);
      |                            ^~~~~~
0_0_39408722_29556.cpp:203:28: note: 'stdout' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39408722_29556.cpp: In function 'int new_state(int, int*, int)':
0_0_39408722_29556.cpp:224:16: error: 'NULL' was not declared in this scope
  224 |     if(_trans==NULL)
      |                ^~~~
0_0_39408722_29556.cpp:1:1: note: 'NULL' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
  +++ |+#include <cstddef>
    1 | // Dynamic Lover
0_0_39408722_29556.cpp:225:9: error: 'memset' was not declared in this scope
  225 |         memset(trans[tot],-1,sizeof(trans[tot]));
      |         ^~~~~~
0_0_39408722_29556.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | // Dynamic Lover
0_0_39408722_29556.cpp: In function 'void add_char()':
0_0_39408722_29556.cpp:236:29: error: 'NULL' was not declared in this scope
  236 |     int z=new_state(cur_len,NULL,-1);
      |                             ^~~~
0_0_39408722_29556.cpp:236:29: note: 'NULL' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
0_0_39408722_29556.cpp: In function 'int main()':
0_0_39408722_29556.cpp:290:12: error: 'scanf' was not declared in this scope
  290 |     while(~scanf("%s",s))
      |            ^~~~~
0_0_39408722_29556.cpp:294:15: error: 'strlen' was not declared in this scope
  294 |         int L=strlen(s);
      |               ^~~~~~
0_0_39408722_29556.cpp:294:15: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_39408722_29556.cpp:296:24: error: 'NULL' was not declared in this scope
  296 |         pe=new_state(0,NULL,-1);
      |                        ^~~~
0_0_39408722_29556.cpp:296:24: note: 'NULL' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
0_0_39408722_29556.cpp:328:25: error: 'printf' was not declared in this scope
  328 |                         printf("%d\n",leftmost[now]-len+1 );
      |                         ^~~~~~
0_0_39408722_29556.cpp:328:25: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39408722_29556.cpp:333:25: error: 'printf' was not declared in this scope
  333 |                         printf("%d\n",cur_len-nowlen+1 );
      |                         ^~~~~~
0_0_39408722_29556.cpp:333:25: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39408722_29556.cpp: In instantiation of 'void read(T&) [with T = int]':
0_0_39408722_29556.cpp:303:13:   required from here
0_0_39408722_29556.cpp:177:21: error: 'getchar' was not declared in this scope
  177 |     while((c=getchar())!=EOF) {
      |              ~~~~~~~^~
0_0_39408722_29556.cpp:177:21: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?


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-22 15:06:47, Gzip enabled