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_36693948_13149.cpp:20:1: error: 'map' does not name a type
 map<string, int> Cache;
 ^
0_0_36693948_13149.cpp:22:9: error: 'string' was not declared in this scope
 int ID (string s) {
         ^
0_0_36693948_13149.cpp:22:9: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36693948_13149.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stringfwd.h:62:33: note:   'std::string'
   typedef basic_string<char>    string;   
                                 ^
0_0_36693948_13149.cpp:22:19: error: expected ',' or ';' before '{' token
 int ID (string s) {
                   ^
0_0_36693948_13149.cpp: In function 'int main()':
0_0_36693948_13149.cpp:32:1: error: 'Cache' was not declared in this scope
 Cache.clear(), cnt = 0;
 ^
0_0_36693948_13149.cpp:35:1: error: 'string' was not declared in this scope
 string t1, t2;
 ^
0_0_36693948_13149.cpp:35:1: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36693948_13149.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stringfwd.h:62:33: note:   'std::string'
   typedef basic_string<char>    string;   
                                 ^
0_0_36693948_13149.cpp:36:1: error: 'cin' was not declared in this scope
 cin >> t1 >> t2;
 ^
0_0_36693948_13149.cpp:36:1: note: suggested alternative:
In file included from 0_0_36693948_13149.cpp:4:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
0_0_36693948_13149.cpp:36:8: error: 't1' was not declared in this scope
 cin >> t1 >> t2;
        ^
0_0_36693948_13149.cpp:36:14: error: 't2' was not declared in this scope
 cin >> t1 >> t2;
              ^
0_0_36693948_13149.cpp:38:11: error: 'ID' cannot be used as a function
 n1 = ID(t1), n2 = ID(t2);
           ^
0_0_36693948_13149.cpp:38:24: error: 'ID' cannot be used as a function
 n1 = ID(t1), n2 = ID(t2);
                        ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 04:00:55, Gzip enabled