In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from cyberland.cpp:2:
cyberland.cpp: In function 'int main()':
cyberland.cpp:94:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
94 | assert(1 == scanf("%d", &T));
| ^~~~ ~~
| |
| long long int*
cyberland.cpp:94:23: note: format string is defined here
94 | assert(1 == scanf("%d", &T));
| ~^
| |
| 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 cyberland.cpp:2:
cyberland.cpp:97:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
97 | assert(4 == scanf("%d %d %d\n%d", &N, &M, &K, &H));
| ^~~~~~~~~~~~~~ ~~
| |
| long long int*
cyberland.cpp:97:25: note: format string is defined here
97 | assert(4 == scanf("%d %d %d\n%d", &N, &M, &K, &H));
| ~^
| |
| 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 cyberland.cpp:2:
cyberland.cpp:97:23: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
97 | assert(4 == scanf("%d %d %d\n%d", &N, &M, &K, &H));
| ^~~~~~~~~~~~~~ ~~
| |
| long long int*
cyberland.cpp:97:28: note: format string is defined here
97 | assert(4 == scanf("%d %d %d\n%d", &N, &M, &K, &H));
| ~^
| |
| 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 cyberland.cpp:2:
cyberland.cpp:97:23: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
97 | assert(4 == scanf("%d %d %d\n%d", &N, &M, &K, &H));
| ^~~~~~~~~~~~~~ ~~
| |
| long long int*
cyberland.cpp:97:31: note: format string is defined here
97 | assert(4 == scanf("%d %d %d\n%d", &N, &M, &K, &H));
| ~^
| |
| 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 cyberland.cpp:2:
cyberland.cpp:97:23: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long int*' [-Wformat=]
97 | assert(4 == scanf("%d %d %d\n%d", &N, &M, &K, &H));
| ^~~~~~~~~~~~~~ ~~
| |
| long long int*
cyberland.cpp:97:35: note: format string is defined here
97 | assert(4 == scanf("%d %d %d\n%d", &N, &M, &K, &H));
| ~^
| |
| 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 cyberland.cpp:2:
cyberland.cpp:103:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type*' {aka 'long long int*'} [-Wformat=]
103 | assert(1 == scanf("%d", &arr[i]));
| ^~~~
cyberland.cpp:103:27: note: format string is defined here
103 | assert(1 == scanf("%d", &arr[i]));
| ~^
| |
| 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 cyberland.cpp:2:
cyberland.cpp:105:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type*' {aka 'long long int*'} [-Wformat=]
105 | assert(3 == scanf("%d %d %d", &x[i], &y[i], &c[i]));
| ^~~~~~~~~~
cyberland.cpp:105:27: note: format string is defined here
105 | assert(3 == scanf("%d %d %d", &x[i], &y[i], &c[i]));
| ~^
| |
| 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 cyberland.cpp:2:
cyberland.cpp:105:25: warning: format '%d' expects argument of type 'int*', but argument 3 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type*' {aka 'long long int*'} [-Wformat=]
105 | assert(3 == scanf("%d %d %d", &x[i], &y[i], &c[i]));
| ^~~~~~~~~~
cyberland.cpp:105:30: note: format string is defined here
105 | assert(3 == scanf("%d %d %d", &x[i], &y[i], &c[i]));
| ~^
| |
| 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 cyberland.cpp:2:
cyberland.cpp:105:25: warning: format '%d' expects argument of type 'int*', but argument 4 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type*' {aka 'long long int*'} [-Wformat=]
105 | assert(3 == scanf("%d %d %d", &x[i], &y[i], &c[i]));
| ^~~~~~~~~~
cyberland.cpp:105:33: note: format string is defined here
105 | assert(3 == scanf("%d %d %d", &x[i], &y[i], &c[i]));
| ~^
| |
| int*
| %lld
/usr/bin/ld: /tmp/cc3ROjbH.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccLGEHRD.o:cyberland.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc3ROjbH.o: in function `main':
grader.cpp:(.text.startup+0x696): undefined reference to `solve(int, int, int, int, std::vector<int, std::allocator<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