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_21391991_21627.cpp:5:1: error: expected ',' or ';' before 'const'
 const int maxn=100100;
 ^
0_0_21391991_21627.cpp:6:16: error: 'maxn' was not declared in this scope
 int n,m,cal[2][maxn],a[maxn],b[maxn],ans = 1;
                ^
0_0_21391991_21627.cpp:6:24: error: 'maxn' was not declared in this scope
 int n,m,cal[2][maxn],a[maxn],b[maxn],ans = 1;
                        ^
0_0_21391991_21627.cpp:6:32: error: 'maxn' was not declared in this scope
 int n,m,cal[2][maxn],a[maxn],b[maxn],ans = 1;
                                ^
0_0_21391991_21627.cpp:7:10: error: 'maxn' was not declared in this scope
 bool vis[maxn];
          ^
0_0_21391991_21627.cpp: In function 'void dfs(int, int, int*, int)':
0_0_21391991_21627.cpp:10:8: error: 'vis' was not declared in this scope
     if(vis[t])
        ^
0_0_21391991_21627.cpp:12:9: error: 'cal' was not declared in this scope
         cal[k][l]++;
         ^
0_0_21391991_21627.cpp:15:5: error: 'vis' was not declared in this scope
     vis[t] = 1;
     ^
0_0_21391991_21627.cpp: In function 'int main()':
0_0_21391991_21627.cpp:24:24: error: 'a' was not declared in this scope
             scanf("%d",a+i);
                        ^
0_0_21391991_21627.cpp:26:24: error: 'b' was not declared in this scope
             scanf("%d",b+i);
                        ^
0_0_21391991_21627.cpp:27:16: error: 'cal' was not declared in this scope
         memset(cal,0,sizeof(cal));
                ^
0_0_21391991_21627.cpp:28:16: error: 'vis' was not declared in this scope
         memset(vis,0,sizeof(vis));
                ^
0_0_21391991_21627.cpp:30:32: error: 'b' was not declared in this scope
             if(!vis[i])dfs(i,0,b,0);
                                ^
0_0_21391991_21627.cpp:33:32: error: 'a' was not declared in this scope
             if(!vis[i])dfs(i,0,a,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-30 08:56:35, Gzip enabled