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_38503628_5805.cpp:10:1: error: 'vector' does not name a type
 vector<int>row[100005];
 ^
0_0_38503628_5805.cpp:11:1: error: 'vector' does not name a type
 vector<int>line[100005];
 ^
0_0_38503628_5805.cpp: In function 'void clear()':
0_0_38503628_5805.cpp:18:3: error: 'row' was not declared in this scope
   row[i].clear();
   ^
0_0_38503628_5805.cpp:20:3: error: 'line' was not declared in this scope
   line[i].clear();
   ^
0_0_38503628_5805.cpp: In function 'int main()':
0_0_38503628_5805.cpp:30:2: error: 'ios' has not been declared
  ios::sync_with_stdio(0);
  ^
0_0_38503628_5805.cpp:31:2: error: 'cin' was not declared in this scope
  cin.tie(0);
  ^
0_0_38503628_5805.cpp:38:3: error: 'vector' was not declared in this scope
   vector<vector<int> >a(n + 1, vector<int>(m + 1));
   ^
0_0_38503628_5805.cpp:38:17: error: expected primary-expression before 'int'
   vector<vector<int> >a(n + 1, vector<int>(m + 1));
                 ^
0_0_38503628_5805.cpp:39:24: error: expected primary-expression before 'bool'
   vector<vector<vector<bool> > >vis(n + 1, vector<vector<bool> >(m + 1,vector<bool>(2, false)));//vis[x][y][0] : a
                        ^
0_0_38503628_5805.cpp:40:10: error: expected primary-expression before 'int'
   vector<int>maxn(n + 1, 0);
          ^
0_0_38503628_5805.cpp:41:10: error: expected primary-expression before 'int'
   vector<int>minx(m + 1, inf);
          ^
0_0_38503628_5805.cpp:45:12: error: 'a' was not declared in this scope
     cin >> a[i][j];
            ^
0_0_38503628_5805.cpp:46:5: error: 'maxn' was not declared in this scope
     maxn[i] = Max(maxn[i], a[i][j]);
     ^
0_0_38503628_5805.cpp:47:5: error: 'minx' was not declared in this scope
     minx[j] = Min(minx[j], a[i][j]);
     ^
0_0_38503628_5805.cpp:53:8: error: 'a' was not declared in this scope
     if(a[i][j] == maxn[i])row[i].push_back(j);
        ^
0_0_38503628_5805.cpp:53:19: error: 'maxn' was not declared in this scope
     if(a[i][j] == maxn[i])row[i].push_back(j);
                   ^
0_0_38503628_5805.cpp:53:27: error: 'row' was not declared in this scope
     if(a[i][j] == maxn[i])row[i].push_back(j);
                           ^
0_0_38503628_5805.cpp:54:8: error: 'a' was not declared in this scope
     if(a[i][j] == minx[j])line[j].push_back(i);
        ^
0_0_38503628_5805.cpp:54:19: error: 'minx' was not declared in this scope
     if(a[i][j] == minx[j])line[j].push_back(i);
                   ^
0_0_38503628_5805.cpp:54:27: error: 'line' was not declared in this scope
     if(a[i][j] == minx[j])line[j].push_back(i);
                           ^
0_0_38503628_5805.cpp:59:3: error: 'queue' was not declared in this scope
   queue<node>q;
   ^
0_0_38503628_5805.cpp:59:13: error: expected primary-expression before '>' token
   queue<node>q;
             ^
0_0_38503628_5805.cpp:59:14: error: 'q' was not declared in this scope
   queue<node>q;
              ^
0_0_38503628_5805.cpp:60:3: error: 'vis' was not declared in this scope
   vis[1][1][0] = 1;
   ^
0_0_38503628_5805.cpp:61:21: error: 'a' was not declared in this scope
   q.push(node(1, 1, a[1][1], 0));
                     ^
0_0_38503628_5805.cpp:72:13: error: 'maxn' was not declared in this scope
     if(w >= maxn[x])break;    
             ^
0_0_38503628_5805.cpp:73:24: error: 'row' was not declared in this scope
     for(int i=0;i<(int)row[x].size();i++){
                        ^
0_0_38503628_5805.cpp:76:32: error: 'maxn' was not declared in this scope
      q.push(node(x, row[x][i], maxn[x], step + 1));
                                ^
0_0_38503628_5805.cpp:79:13: error: 'minx' was not declared in this scope
     if(w <= minx[y])break;
             ^
0_0_38503628_5805.cpp:80:24: error: 'line' was not declared in this scope
     for(int i=0;i<(int)line[y].size();i++){
                        ^
0_0_38503628_5805.cpp:83:33: error: 'minx' was not declared in this scope
      q.push(node(line[y][i], y, minx[y], step + 1));
                                 ^
0_0_38503628_5805.cpp:87:3: error: 'cout' was not declared in this scope
   cout << ans << "\n";  
   ^


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-23 04:26:31, Gzip enabled