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_32866970_3112.cpp:1:7: error: stray '#' in program
 <code>#include<bits/stdc++.h>
       ^
0_0_32866970_3112.cpp:1:1: error: expected unqualified-id before '<' token
 <code>#include<bits/stdc++.h>
 ^
0_0_32866970_3112.cpp:7:1: error: 'set' does not name a type
 set<int>SS[M]; 
 ^
0_0_32866970_3112.cpp: In member function 'void AC_automaton::clear()':
0_0_32866970_3112.cpp:3:38: error: 'memset' was not declared in this scope
 #define clr(x,y) memset(x,y,sizeof(x))
                                      ^
0_0_32866970_3112.cpp:19:9: note: in expansion of macro 'clr'
         clr(pa,0);
         ^
0_0_32866970_3112.cpp: In member function 'void AC_automaton::Insert(char*, int)':
0_0_32866970_3112.cpp:24:27: error: 'strlen' was not declared in this scope
         int u=0,l=strlen(S);
                           ^
0_0_32866970_3112.cpp: In member function 'void AC_automaton::get_fail()':
0_0_32866970_3112.cpp:33:9: error: 'queue' was not declared in this scope
         queue<int>Q;
         ^
0_0_32866970_3112.cpp:33:15: error: expected primary-expression before 'int'
         queue<int>Q;
               ^
0_0_32866970_3112.cpp:37:17: error: 'Q' was not declared in this scope
                 Q.push(pa[0][i]);   
                 ^
0_0_32866970_3112.cpp:40:16: error: 'Q' was not declared in this scope
         while(!Q.empty()){
                ^
0_0_32866970_3112.cpp: In function 'void dfs(int)':
0_0_32866970_3112.cpp:55:39: error: 'SS' was not declared in this scope
     for(int i=h[1][x];i;i=G[1][i].nxt)SS[G[1][i].to].insert(G[1][i].ex);
                                       ^
0_0_32866970_3112.cpp:57:12: error: 'SS' was not declared in this scope
         if(SS[G[2][i].to].empty())ans[G[2][i].ex]=0;
            ^
0_0_32866970_3112.cpp:61:39: error: 'SS' was not declared in this scope
     for(int i=h[1][x];i;i=G[1][i].nxt)SS[G[1][i].to].erase(G[1][i].ex);
                                       ^
0_0_32866970_3112.cpp: In function 'int main()':
0_0_32866970_3112.cpp:65:30: error: 'scanf' was not declared in this scope
     while(~scanf("%d%d",&n,&m)){
                              ^
0_0_32866970_3112.cpp:3:38: error: 'memset' was not declared in this scope
 #define clr(x,y) memset(x,y,sizeof(x))
                                      ^
0_0_32866970_3112.cpp:66:20: note: in expansion of macro 'clr'
         Tr.clear();clr(h,0);clr(ttt,0);clr(val,0);
                    ^
0_0_32866970_3112.cpp:68:13: error: 'SS' was not declared in this scope
             SS[i].clear();
             ^
0_0_32866970_3112.cpp:70:27: error: 'strlen' was not declared in this scope
             int l=strlen(S);
                           ^
0_0_32866970_3112.cpp:81:33: error: 'printf' was not declared in this scope
             printf("%d\n",ans[i]);
                                 ^


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-30 03:51:23, Gzip enabled