0_0_29204384_24284.cpp:24:9: error: storage class specified for 'l'
int l,r,id;
^
0_0_29204384_24284.cpp:24:11: error: storage class specified for 'r'
int l,r,id;
^
0_0_29204384_24284.cpp:24:13: error: storage class specified for 'id'
int l,r,id;
^
0_0_29204384_24284.cpp:26:22: error: wrong number of template arguments (1, should be 5)
unordered_map<int,int>mp;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
from 0_0_29204384_24284.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:98:11: error: provided for 'template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map'
class unordered_map
^
0_0_29204384_24284.cpp:26:25: error: invalid type in declaration before ';' token
unordered_map<int,int>mp;
^
0_0_29204384_24284.cpp: In function 'void getbestarr(int)':
0_0_29204384_24284.cpp:19:13: error: expected primary-expression before 'register'
#define int register int
^
0_0_29204384_24284.cpp:40:17: note: in expansion of macro 'int'
int tem = (int)floor(log2((double)n));//因为区间的最长长度是2^tem==n嘛
^
0_0_29204384_24284.cpp:19:13: error: expected ')' before 'register'
#define int register int
^
0_0_29204384_24284.cpp:40:17: note: in expansion of macro 'int'
int tem = (int)floor(log2((double)n));//因为区间的最长长度是2^tem==n嘛
^
0_0_29204384_24284.cpp: At global scope:
0_0_29204384_24284.cpp:50:35: error: storage class 'register' invalid for function 'query'
int query(int a,int b,bool getwhat)
^
0_0_29204384_24284.cpp: In function 'void add(int)':
0_0_29204384_24284.cpp:62:12: error: invalid types 'int[int]' for array subscript
if(mp[u] == 0){
^
0_0_29204384_24284.cpp:63:13: error: invalid types 'int[int]' for array subscript
mp[u] = 1;
^
0_0_29204384_24284.cpp:66:14: error: invalid types 'int[int]' for array subscript
else mp[u]++;
^
0_0_29204384_24284.cpp: In function 'void del(int)':
0_0_29204384_24284.cpp:69:12: error: invalid types 'int[int]' for array subscript
if(mp[u] == 1){
^
0_0_29204384_24284.cpp:71:13: error: invalid types 'int[int]' for array subscript
mp[u] = 0;
^
0_0_29204384_24284.cpp:73:13: error: invalid types 'int[int]' for array subscript
mp[u]--;
^
0_0_29204384_24284.cpp: In function 'int main()':
0_0_29204384_24284.cpp:83:12: error: request for member 'clear' in 'mp', which is of non-class type 'int'
mp.clear();
^
|