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_21384721_3445.cpp:1:1: error: 'include' does not name a type
 include<bits/stdc++.h>
 ^
0_0_21384721_3445.cpp:3:1: error: 'map' does not name a type
 map<pair<int,int>,bool> M;
 ^
0_0_21384721_3445.cpp:4:1: error: 'pair' does not name a type
 pair<int,int>point[1000];
 ^
0_0_21384721_3445.cpp: In function 'int main()':
0_0_21384721_3445.cpp:13:11: error: 'cin' was not declared in this scope
     while(cin>>n)
           ^
0_0_21384721_3445.cpp:17:9: error: 'M' was not declared in this scope
         M.clear();
         ^
0_0_21384721_3445.cpp:19:16: error: 'point' was not declared in this scope
         memset(point,0,sizeof(point));
                ^
0_0_21384721_3445.cpp:19:37: error: 'memset' was not declared in this scope
         memset(point,0,sizeof(point));
                                     ^
0_0_21384721_3445.cpp:23:36: error: 'scanf' was not declared in this scope
             scanf("%d %d",&t_x,&t_y);
                                    ^
0_0_21384721_3445.cpp:35:58: error: 'make_pair' was not declared in this scope
                 if(M.count(mk(point[i].x+dx,point[i].y+dy))) ok++;
                                                          ^
0_0_21384721_3445.cpp:36:58: error: 'make_pair' was not declared in this scope
                 if(M.count(mk(point[j].x+dx,point[j].y+dy))) ok++;
                                                          ^
0_0_21384721_3445.cpp:39:58: error: 'make_pair' was not declared in this scope
                 if(M.count(mk(point[i].x-dx,point[i].y-dy))) ok++;
                                                          ^
0_0_21384721_3445.cpp:40:58: error: 'make_pair' was not declared in this scope
                 if(M.count(mk(point[j].x-dy,point[j].y-dx))) ok++;
                                                          ^
0_0_21384721_3445.cpp:44:9: error: 'cout' was not declared in this scope
         cout<<ans/4<<endl;
         ^
0_0_21384721_3445.cpp:44:22: error: 'endl' was not declared in this scope
         cout<<ans/4<<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-06-02 06:49:43, Gzip enabled