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_31006860_18152.cpp:1:2: error: invalid preprocessing directive #incl
 #incl///ude<bits//stdc++.h>
  ^
0_0_31006860_18152.cpp:11:1: error: 'vector' does not name a type
 vector<int>g[N*N];
 ^
0_0_31006860_18152.cpp: In function 'void dfs(int, int&)':
0_0_31006860_18152.cpp:39:19: error: 'g' was not declared in this scope
     for(int i=0;i<g[u].size();i++){
                   ^
0_0_31006860_18152.cpp: In function 'int main()':
0_0_31006860_18152.cpp:49:25: error: 'stdin' was not declared in this scope
     freopen("i.txt","r",stdin);
                         ^
0_0_31006860_18152.cpp:49:30: error: 'freopen' was not declared in this scope
     freopen("i.txt","r",stdin);
                              ^
0_0_31006860_18152.cpp:51:18: error: 'scanf' was not declared in this scope
     scanf("%d",&T);
                  ^
0_0_31006860_18152.cpp:58:36: error: 'g' was not declared in this scope
             for(int i=0;i<N*N;i++) g[i].clear();
                                    ^
0_0_31006860_18152.cpp:59:36: error: 'memset' was not declared in this scope
             memset(vis,0,sizeof vis);
                                    ^
0_0_31006860_18152.cpp:89:29: error: 'g' was not declared in this scope
                             g[id(i,j)].push_back(id(x,y));
                             ^
0_0_31006860_18152.cpp:105:41: error: 'max' was not declared in this scope
                     ans += max(cnt1,cnt2);
                                         ^
0_0_31006860_18152.cpp:108:34: error: 'max' was not declared in this scope
             res = max(res,ans+cnt);
                                  ^
0_0_31006860_18152.cpp:110:9: error: 'cout' was not declared in this scope
         cout << res << endl;
         ^
0_0_31006860_18152.cpp:110:24: error: 'endl' was not declared in this scope
         cout << res << endl;
                        ^


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-07-04 15:30:26, Gzip enabled