elephants.cpp: In function 'void init(int, int, int*)':
elephants.cpp:26:15: warning: 'sizeof' on array function parameter 'X' will return size of 'int*' [-Wsizeof-array-argument]
26 | loop(sizeof(X)/sizeof(X[0])){
| ~^~
elephants.cpp:8:36: note: in definition of macro 'loop'
8 | #define loop(s) for(int a = 0; a < s; ++a)
| ^
elephants.cpp:20:29: note: declared here
20 | void init(int N, int L, int X[])
| ~~~~^~~
elephants.cpp:34:11: error: too few arguments to function 'int update(int, int)'
34 | update();
| ~~~~~~^~
In file included from elephants.cpp:1:
elephants.h:2:5: note: declared here
2 | int update(int i, int y);
| ^~~~~~
elephants.cpp: In function 'int update(int, int)':
elephants.cpp:56:1: warning: no return statement in function returning non-void [-Wreturn-type]
56 | }
| ^