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_31008849_4772.cpp:1:2: error: stray '#' in program
 /#include<bits/stdc++.h>
  ^
0_0_31008849_4772.cpp:1:1: error: expected unqualified-id before '/' token
 /#include<bits/stdc++.h>
 ^
0_0_31008849_4772.cpp:11:1: error: 'vector' does not name a type
 vector<int>g[N*N];
 ^
0_0_31008849_4772.cpp: In function 'void dfs(int, int&, int&)':
0_0_31008849_4772.cpp:48:20: error: 'g' was not declared in this scope
     for(int i=0; i<g[u].size(); i++)
                    ^
0_0_31008849_4772.cpp: In function 'int main()':
0_0_31008849_4772.cpp:64:18: error: 'scanf' was not declared in this scope
     scanf("%d",&T);
                  ^
0_0_31008849_4772.cpp:67:28: error: 'memset' was not declared in this scope
         memset(v,0,sizeof v);
                            ^
0_0_31008849_4772.cpp:80:38: error: 'g' was not declared in this scope
             for(int i=0; i<N*N; i++) g[i].clear();
                                      ^
0_0_31008849_4772.cpp:94:30: error: too few arguments to function 'void dfs(int, int&, int&)'
                         dfs(u);
                              ^
0_0_31008849_4772.cpp:45:6: note: declared here
 void dfs(int u,int &cnt,int &c)
      ^
0_0_31008849_4772.cpp:134:33: error: 'g' was not declared in this scope
                                 g[id(i,j)].push_back(id(x,y));
                                 ^
0_0_31008849_4772.cpp:151:45: error: 'max' was not declared in this scope
                     ans = max(cnt1,cnt2-cnt1);
                                             ^
0_0_31008849_4772.cpp:156:35: error: 'max' was not declared in this scope
             res = max(res,_ans+cnt);
                                   ^
0_0_31008849_4772.cpp:158:41: error: 'printf' was not declared in this scope
         printf("Case #%d: %d\n",++gg,res);
                                         ^


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-10-02 15:30:49, Gzip enabled