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_37712795_2138.cpp:1:1: error: 'include' does not name a type
 include<bits/stdc++.h>
 ^
0_0_37712795_2138.cpp:7:1: error: 'pair' does not name a type
 pair<int,int> p[N];
 ^
0_0_37712795_2138.cpp:9:1: error: 'vector' does not name a type
 vector<int> cnt[N][N];
 ^
0_0_37712795_2138.cpp: In function 'int dis(int, int)':
0_0_37712795_2138.cpp:19:16: error: 'p' was not declared in this scope
     return abs(p[i].first-p[j].first)+abs(p[i].second-p[j].second);
                ^
0_0_37712795_2138.cpp:19:37: error: 'abs' was not declared in this scope
     return abs(p[i].first-p[j].first)+abs(p[i].second-p[j].second);
                                     ^
0_0_37712795_2138.cpp: At global scope:
0_0_37712795_2138.cpp:21:1: error: 'map' does not name a type
 map<pair<int,pair<int,int>>,bool> mp;
 ^
0_0_37712795_2138.cpp: In function 'void solve()':
0_0_37712795_2138.cpp:24:5: error: 'cin' was not declared in this scope
     cin>>n>>m;
     ^
0_0_37712795_2138.cpp:26:14: error: 'p' was not declared in this scope
         cin>>p[i].first>>p[i].second;
              ^
0_0_37712795_2138.cpp:38:41: error: 'swap' was not declared in this scope
                     if(kk<jj) swap(kk,jj);
                                         ^
0_0_37712795_2138.cpp:39:41: error: 'swap' was not declared in this scope
                     if(jj<ii) swap(jj,ii);
                                         ^
0_0_37712795_2138.cpp:40:41: error: 'swap' was not declared in this scope
                     if(kk<jj) swap(kk,jj);
                                         ^
0_0_37712795_2138.cpp:41:21: error: 'cnt' was not declared in this scope
                     cnt[ii][jj].push_back(kk);
                     ^
0_0_37712795_2138.cpp:48:18: error: 'cnt' was not declared in this scope
             sort(cnt[i][j].begin(),cnt[i][j].end());
                  ^
0_0_37712795_2138.cpp:48:51: error: 'sort' was not declared in this scope
             sort(cnt[i][j].begin(),cnt[i][j].end());
                                                   ^
0_0_37712795_2138.cpp:49:69: error: 'unique' was not declared in this scope
             cnt[i][j].erase(unique(cnt[i][j].begin(),cnt[i][j].end()),cnt[i][j].end());
                                                                     ^
0_0_37712795_2138.cpp:54:5: error: 'cout' was not declared in this scope
     cout<<ans<<'\n';
     ^
0_0_37712795_2138.cpp: In function 'int main()':
0_0_37712795_2138.cpp:61:5: error: 'cin' was not declared in this scope
     cin.tie(0)->sync_with_stdio(0);
     ^


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-17 01:12:49, Gzip enabled