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_28849702_22222.cpp:1:38: error: stray '#' in program
 <code class="language-C++ hljs perl">#include<cstdio>
                                      ^
0_0_28849702_22222.cpp:1:1: error: expected unqualified-id before '<' token
 <code class="language-C++ hljs perl">#include<cstdio>
 ^
0_0_28849702_22222.cpp:3:20: error: 'M' was not declared in this scope
 int n,x,y,t=1,ed,f[M],b[M],g[N],nxt[M<<1],v[M<<1];
                    ^
0_0_28849702_22222.cpp:3:25: error: 'M' was not declared in this scope
 int n,x,y,t=1,ed,f[M],b[M],g[N],nxt[M<<1],v[M<<1];
                         ^
0_0_28849702_22222.cpp:3:30: error: 'N' was not declared in this scope
 int n,x,y,t=1,ed,f[M],b[M],g[N],nxt[M<<1],v[M<<1];
                              ^
0_0_28849702_22222.cpp:3:37: error: 'M' was not declared in this scope
 int n,x,y,t=1,ed,f[M],b[M],g[N],nxt[M<<1],v[M<<1];
                                     ^
0_0_28849702_22222.cpp:3:45: error: 'M' was not declared in this scope
 int n,x,y,t=1,ed,f[M],b[M],g[N],nxt[M<<1],v[M<<1];
                                             ^
0_0_28849702_22222.cpp: In function 'void read(int&)':
0_0_28849702_22222.cpp:6:22: error: 'getchar' was not declared in this scope
     while((c=getchar())<'0' || c>'9');
                      ^
0_0_28849702_22222.cpp:8:22: error: 'getchar' was not declared in this scope
     while((c=getchar())>='0' && c<='9') x=x*10+c-'0';
                      ^
0_0_28849702_22222.cpp: In function 'void add(int, int)':
0_0_28849702_22222.cpp:11:5: error: 'v' was not declared in this scope
     v[++ed]=y;
     ^
0_0_28849702_22222.cpp:12:5: error: 'nxt' was not declared in this scope
     nxt[ed]=g[x];
     ^
0_0_28849702_22222.cpp:12:13: error: 'g' was not declared in this scope
     nxt[ed]=g[x];
             ^
0_0_28849702_22222.cpp: In function 'bool find(int)':
0_0_28849702_22222.cpp:16:15: error: 'g' was not declared in this scope
     for(int i=g[x];i;i=nxt[i]) if(b[v[i]]!=t){
               ^
0_0_28849702_22222.cpp:16:24: error: 'nxt' was not declared in this scope
     for(int i=g[x];i;i=nxt[i]) if(b[v[i]]!=t){
                        ^
0_0_28849702_22222.cpp:16:35: error: 'b' was not declared in this scope
     for(int i=g[x];i;i=nxt[i]) if(b[v[i]]!=t){
                                   ^
0_0_28849702_22222.cpp:16:37: error: 'v' was not declared in this scope
     for(int i=g[x];i;i=nxt[i]) if(b[v[i]]!=t){
                                     ^
0_0_28849702_22222.cpp:18:13: error: 'f' was not declared in this scope
         if(!f[v[i]] || find(f[v[i]])) return f[v[i]]=x,1;
             ^
0_0_28849702_22222.cpp: In function 'int main()':
0_0_28849702_22222.cpp:29:20: error: 'printf' was not declared in this scope
     printf("%d",t-1);
                    ^


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:03:42, Gzip enabled