ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:20:4: warning: unused variable 'count' [-Wunused-variable]
20 | ll count=0;
| ^~~~~
ricehub.cpp: In function 'int main()':
ricehub.cpp:76:35: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=]
76 | printf("Incorrect. Returned %d instead of %d.\n",anse,solution);
| ~^ ~~~~
| | |
| int ll {aka long long int}
| %lld
/usr/bin/ld: /tmp/ccTn3YEP.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc4WjeNP.o:ricehub.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status