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:68:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
68 | assert(1 == scanf("%d", &n));
| ^~~~ ~~
| |
| ll* {aka long long int*}
mountains.cpp:68:25: note: format string is defined here
68 | assert(1 == scanf("%d", &n));
| ~^
| |
| int*
| %lld
mountains.cpp:74:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=]
74 | printf("%d\n", result);
| ~^ ~~~~~~
| | |
| int ll {aka long long int}
| %lld
/tmp/ccHDGVpi.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccz3uyYg.o:mountains.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status