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_14000942_29337.cpp: In function 'int main()':
0_0_14000942_29337.cpp:8:6: error: '_int64' was not declared in this scope
  map<_int64,_int64>mp;
      ^
0_0_14000942_29337.cpp:8:13: error: the value of '_int64' is not usable in a constant expression
  map<_int64,_int64>mp;
             ^
0_0_14000942_29337.cpp:8:6: note: '_int64' was not declared 'constexpr'
  map<_int64,_int64>mp;
      ^
0_0_14000942_29337.cpp:8:19: error: template argument 1 is invalid
  map<_int64,_int64>mp;
                   ^
0_0_14000942_29337.cpp:8:19: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
0_0_14000942_29337.cpp:8:19: error:   expected a type, got '_int64'
0_0_14000942_29337.cpp:8:19: error: template argument 3 is invalid
0_0_14000942_29337.cpp:8:19: error: template argument 4 is invalid
0_0_14000942_29337.cpp:8:22: error: invalid type in declaration before ';' token
  map<_int64,_int64>mp;
                      ^
0_0_14000942_29337.cpp:12:6: error: request for member 'clear' in 'mp', which is of non-class type 'int'
   mp.clear();
      ^
0_0_14000942_29337.cpp:16:8: error: invalid types 'int[long long int]' for array subscript
    mp[k]++;
        ^
0_0_14000942_29337.cpp:18:7: error: the value of '_int64' is not usable in a constant expression
   map<_int64,_int64>::iterator it;
       ^
0_0_14000942_29337.cpp:8:6: note: '_int64' was not declared 'constexpr'
  map<_int64,_int64>mp;
      ^
0_0_14000942_29337.cpp:18:14: error: the value of '_int64' is not usable in a constant expression
   map<_int64,_int64>::iterator it;
              ^
0_0_14000942_29337.cpp:8:6: note: '_int64' was not declared 'constexpr'
  map<_int64,_int64>mp;
      ^
0_0_14000942_29337.cpp:18:20: 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<_int64,_int64>::iterator it;
                    ^
0_0_14000942_29337.cpp:18:20: error:   expected a type, got '_int64'
0_0_14000942_29337.cpp:18:20: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
0_0_14000942_29337.cpp:18:20: error:   expected a type, got '_int64'
0_0_14000942_29337.cpp:18:20: error: template argument 3 is invalid
0_0_14000942_29337.cpp:18:20: error: template argument 4 is invalid
0_0_14000942_29337.cpp:18:32: error: expected initializer before 'it'
   map<_int64,_int64>::iterator it;
                                ^
0_0_14000942_29337.cpp:19:7: error: 'it' was not declared in this scope
   for(it=mp.begin();it!=mp.end();it++)
       ^
0_0_14000942_29337.cpp:19:13: error: request for member 'begin' in 'mp', which is of non-class type 'int'
   for(it=mp.begin();it!=mp.end();it++)
             ^
0_0_14000942_29337.cpp:19:28: error: request for member 'end' in 'mp', which is of non-class type 'int'
   for(it=mp.begin();it!=mp.end();it++)
                            ^


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-09-30 03:24:54, Gzip enabled