Problem nis
User AJR
Submission Time 2023-01-08 17:06:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nis.cpp:96:13: error: redefinition of ‘std::vector<long long int> discretize(std::vector<long long int>)’
96 | vector<int> discretize(vector<int> V) {
| ^~~~~~~~~~
nis.cpp:14:13: note: ‘std::vector<long long int> discretize(std::vector<long long int>)’ previously defined here
14 | vector<int> discretize(vector<int> V) {
| ^~~~~~~~~~
nis.cpp:106:8: error: redefinition of ‘struct node’
106 | struct node {
| ^~~~
nis.cpp:24:8: note: previous definition of ‘struct node’
24 | struct node {
| ^~~~
nis.cpp:146:4: error: conflicting declaration ‘int* root’
146 | } *root;
| ^~~~
nis.cpp:64:4: note: previous declaration as ‘node* root’
64 | } *root;
| ^~~~
nis.cpp:148:13: error: redefinition of ‘std::vector<long long int> v’
148 | vector<int> v;
| ^
nis.cpp:66: