mountains.cpp:67:1: error: '::main' must return 'int'
67 | ll main() {
| ^~
In file included from /usr/include/c++/9/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:45,
from /usr/include/c++/9/ext/pb_ds/detail/container_base_dispatch.hpp:90,
from /usr/include/c++/9/ext/pb_ds/assoc_container.hpp:48,
from mountains.cpp:2:
mountains.cpp: In function 'int main()':
mountains.cpp:69:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
69 | assert(1 == scanf("%d", &n));
| ^~~~ ~~
| |
| ll* {aka long long int*}
mountains.cpp:69:25: note: format string is defined here
69 | assert(1 == scanf("%d", &n));
| ~^
| |
| int*
| %lld
In file included from /usr/include/c++/9/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:45,
from /usr/include/c++/9/ext/pb_ds/detail/container_base_dispatch.hpp:90,
from /usr/include/c++/9/ext/pb_ds/assoc_container.hpp:48,
from mountains.cpp:2:
mountains.cpp:72:27: 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=]
72 | assert(1 == scanf("%d", &y[i]));
| ^~~~
mountains.cpp:72:29: note: format string is defined here
72 | assert(1 == scanf("%d", &y[i]));
| ~^
| |
| int*
| %lld
mountains.cpp:75:5: error: 'prllf' was not declared in this scope
75 | prllf("%d\n", result);
| ^~~~~