elephants.cpp:10:5: error: redefinition of 'int n'
10 | int n, l;
| ^
elephants.cpp:5:5: note: 'int n' previously declared here
5 | int n, l;
| ^
elephants.cpp:10:8: error: redefinition of 'int l'
10 | int n, l;
| ^
elephants.cpp:5:8: note: 'int l' previously declared here
5 | int n, l;
| ^
elephants.cpp:11:6: error: redefinition of 'int* x'
11 | int *x;
| ^
elephants.cpp:6:6: note: 'int* x' previously declared here
6 | int *x;
| ^
elephants.cpp:12:13: error: redefinition of 'std::vector<int> pos'
12 | vector<int> pos;
| ^~~
elephants.cpp:7:13: note: 'std::vector<int> pos' previously declared here
7 | vector<int> pos;
| ^~~
elephants.cpp:13:13: error: redefinition of 'std::vector<int> ele'
13 | vector<int> ele;
| ^~~
elephants.cpp:8:13: note: 'std::vector<int> ele' previously declared here
8 | vector<int> ele;
| ^~~