In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from fish.cpp:1:
fish.cpp: In function 'int main()':
fish.cpp:68:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
68 | assert(2 == scanf("%d %d", &N, &M));
| ^~~~~~~ ~~
| |
| ll* {aka long long int*}
fish.cpp:68:23: note: format string is defined here
68 | assert(2 == scanf("%d %d", &N, &M));
| ~^
| |
| int*
| %lld
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from fish.cpp:1:
fish.cpp:68:21: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
68 | assert(2 == scanf("%d %d", &N, &M));
| ^~~~~~~ ~~
| |
| ll* {aka long long int*}
fish.cpp:68:26: note: format string is defined here
68 | assert(2 == scanf("%d %d", &N, &M));
| ~^
| |
| int*
| %lld
/usr/bin/ld: /tmp/cc1MhPXW.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccCvM5IV.o:fish.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc1MhPXW.o: in function `main':
grader.cpp:(.text.startup+0x25e): undefined reference to `max_weights(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status