We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
key
1 parent 93c64b5 commit 825d2dcCopy full SHA for 825d2dc
1 file changed
search/hash_search.cpp
@@ -98,7 +98,7 @@ int hash_search(int key, int* counter) { // Hash lookup function
98
/** main function */
99
int main() {
100
link p;
101
- int key, index, i, counter; // Key is the value to be found
+ int key = 0, index, i, counter; // Key is the value to be found
102
index = 0;
103
104
// You can write the input mode here
0 commit comments