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_36362838_27088.cpp: In function 'int main()':
0_0_36362838_27088.cpp:13:6: error: 'AppleF' was not declared in this scope
  map<AppleF, int> appleMap;
      ^
0_0_36362838_27088.cpp:13:17: error: template argument 1 is invalid
  map<AppleF, int> appleMap;
                 ^
0_0_36362838_27088.cpp:13:17: error: template argument 3 is invalid
0_0_36362838_27088.cpp:13:17: error: template argument 4 is invalid
0_0_36362838_27088.cpp:13:27: error: invalid type in declaration before ';' token
  map<AppleF, int> appleMap;
                           ^
0_0_36362838_27088.cpp:14:9: error: expected ';' before 'app'
  AppleF app;
         ^
0_0_36362838_27088.cpp:20:4: error: 'app' was not declared in this scope
    app.fName = s1;
    ^
0_0_36362838_27088.cpp:31:7: error: the value of 'AppleF' is not usable in a constant expression
   map<AppleF, int>::iterator first;
       ^
0_0_36362838_27088.cpp:13:6: note: 'AppleF' was not declared 'constexpr'
  map<AppleF, int> appleMap;
      ^
0_0_36362838_27088.cpp:31:18: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
   map<AppleF, int>::iterator first;
                  ^
0_0_36362838_27088.cpp:31:18: error:   expected a type, got 'AppleF'
0_0_36362838_27088.cpp:31:18: error: template argument 3 is invalid
0_0_36362838_27088.cpp:31:18: error: template argument 4 is invalid
0_0_36362838_27088.cpp:31:30: error: expected initializer before 'first'
   map<AppleF, int>::iterator first;
                              ^
0_0_36362838_27088.cpp:32:7: error: the value of 'AppleF' is not usable in a constant expression
   map<AppleF, int>::iterator second;
       ^
0_0_36362838_27088.cpp:13:6: note: 'AppleF' was not declared 'constexpr'
  map<AppleF, int> appleMap;
      ^
0_0_36362838_27088.cpp:32:18: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
   map<AppleF, int>::iterator second;
                  ^
0_0_36362838_27088.cpp:32:18: error:   expected a type, got 'AppleF'
0_0_36362838_27088.cpp:32:18: error: template argument 3 is invalid
0_0_36362838_27088.cpp:32:18: error: template argument 4 is invalid
0_0_36362838_27088.cpp:32:30: error: expected initializer before 'second'
   map<AppleF, int>::iterator second;
                              ^
0_0_36362838_27088.cpp:33:3: error: 'first' was not declared in this scope
   first = appleMap.begin();
   ^
0_0_36362838_27088.cpp:33:20: error: request for member 'begin' in 'appleMap', which is of non-class type 'int'
   first = appleMap.begin();
                    ^
0_0_36362838_27088.cpp:34:3: error: 'second' was not declared in this scope
   second = appleMap.begin();
   ^
0_0_36362838_27088.cpp:34:21: error: request for member 'begin' in 'appleMap', which is of non-class type 'int'
   second = appleMap.begin();
                     ^
0_0_36362838_27088.cpp:38:28: error: request for member 'end' in 'appleMap', which is of non-class type 'int'
    while (second!=appleMap.end())
                            ^
0_0_36362838_27088.cpp:46:27: error: request for member 'end' in 'appleMap', which is of non-class type 'int'
    if (second == appleMap.end()) {
                           ^


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-26 06:07:21, Gzip enabled