elephants.cpp: In function 'void calcBucket(int)':
elephants.cpp:21:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if( pt == buck[i].size() - 1 ) {
~~~^~~~~~~~~~~~~~~~~~~~~
elephants.cpp: In function 'void createBuckets(std::vector<int>&)':
elephants.cpp:43:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0; i < a.size(); i ++ ) {
~~^~~~~~~~~~
elephants.cpp: In function 'void deleteElephant(int)':
elephants.cpp:80:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int j = i; j < buck[b].size() - 1; j ++ )
~~^~~~~~~~~~~~~~~~~~~~
elephants.cpp: In function 'int main()':
elephants.cpp:145:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d" , & N , & L , & M );
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
elephants.cpp:150:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" , & x );
~~~~~^~~~~~~~~~~~~
elephants.cpp:161:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d" , & p , & x );
~~~~~^~~~~~~~~~~~~~~~~~~~~
/tmp/ccI7PHQL.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccTvHSFd.o:elephants.cpp:(.text.startup+0x0): first defined here
/tmp/ccI7PHQL.o: In function `main':
grader.cpp:(.text.startup+0x1d): undefined reference to `init(int, int, int*)'
grader.cpp:(.text.startup+0x3f): undefined reference to `update(int, int)'
collect2: error: ld returned 1 exit status