File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class hash_map
9
9
public:
10
10
hash_map (size_t n)
11
11
{
12
- data = std::vector (n, -1 );
12
+ data = std::vector< int > (n, -1 );
13
13
}
14
14
15
15
void insert (uint value)
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ class hash_map
20
20
public:
21
21
hash_map (int n) : size(n)
22
22
{
23
- data1 = std::vector (size, -1 );
24
- data2 = std::vector (size, -1 );
23
+ data1 = std::vector< int > (size, -1 );
24
+ data2 = std::vector< int > (size, -1 );
25
25
}
26
26
27
27
std::vector<int >::iterator lookup (int key)
Original file line number Diff line number Diff line change @@ -17,12 +17,13 @@ class bloom_filter
17
17
case 2 :
18
18
return (key / 11 ) % nBits;
19
19
}
20
+ return 0 ;
20
21
}
21
22
22
23
public:
23
24
bloom_filter (int n) : nBits(n)
24
25
{
25
- data = std::vector (nBits, false );
26
+ data = std::vector< bool > (nBits, false );
26
27
}
27
28
28
29
void lookup (int key)
You can’t perform that action at this time.
0 commit comments