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_33841168_6658.cpp:1:1: error: 'include' does not name a type
 include<bits/stdc++.h>
 ^
0_0_33841168_6658.cpp: In function 'int main()':
0_0_33841168_6658.cpp:10:2: error: 'cin' was not declared in this scope
  cin >> t;
  ^
0_0_33841168_6658.cpp:19:3: error: 'map' was not declared in this scope
   map<string, int>mp;
   ^
0_0_33841168_6658.cpp:19:7: error: 'string' was not declared in this scope
   map<string, int>mp;
       ^
0_0_33841168_6658.cpp:19:15: error: expected primary-expression before 'int'
   map<string, int>mp;
               ^
0_0_33841168_6658.cpp:23:11: error: expected ';' before 'tp'
    string tp;
           ^
0_0_33841168_6658.cpp:24:11: error: 'tp' was not declared in this scope
    cin >> tp;
           ^
0_0_33841168_6658.cpp:25:8: error: 'mp' was not declared in this scope
    if (mp.count(tp)) a[i] = mp[tp];
        ^
0_0_33841168_6658.cpp:41:23: error: 'printf' was not declared in this scope
   printf("%lld\n", ans);
                       ^


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-12-02 10:24:13, Gzip enabled