elephants.cpp: In function 'int update(int, long long int)':
elephants.cpp:19:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
19 | while(a_[i + 1] < a_[i]) swap(a_[i + 1], a_[i]); i++;
| ^~~~~
elephants.cpp:19:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
19 | while(a_[i + 1] < a_[i]) swap(a_[i + 1], a_[i]); i++;
| ^
/usr/bin/ld: /tmp/ccdDmSVz.o: in function `main':
grader.cpp:(.text.startup+0x56): undefined reference to `update(int, int)'
collect2: error: ld returned 1 exit status