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_36643952_1588.cpp:3:9: error: 'pair' does not name a type
 typedef pair<int,int> P;
         ^
0_0_36643952_1588.cpp: In function 'void f1()':
0_0_36643952_1588.cpp:12:5: error: 'map' was not declared in this scope
     map<P,int> g;
     ^
0_0_36643952_1588.cpp:12:9: error: 'P' was not declared in this scope
     map<P,int> g;
         ^
0_0_36643952_1588.cpp:12:11: error: expected primary-expression before 'int'
     map<P,int> g;
           ^
0_0_36643952_1588.cpp:13:24: error: 'scanf' was not declared in this scope
     scanf("%d%s",&n,s+1);
                        ^
0_0_36643952_1588.cpp:15:5: error: 'g' was not declared in this scope
     g[P(0,0)]=1;
     ^
0_0_36643952_1588.cpp:31:11: error: expected ';' before 'na'
         P na=P(x,y);
           ^
0_0_36643952_1588.cpp:32:20: error: 'na' was not declared in this scope
         if(g.count(na)){
                    ^
0_0_36643952_1588.cpp:40:24: error: 'printf' was not declared in this scope
     printf("%lld\n",ans);
                        ^
0_0_36643952_1588.cpp: In function 'int main()':
0_0_36643952_1588.cpp:45:24: error: 'scanf' was not declared in this scope
     int t;scanf("%d",&t);
                        ^


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-16 19:29:15, Gzip enabled