race.cpp: In function 'int main()':
race.cpp:86:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
86 | scanf("%d %d", &N, &K);
| ~^ ~~
| | |
| int* long long int*
| %lld
race.cpp:86:14: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
86 | scanf("%d %d", &N, &K);
| ~^ ~~
| | |
| int* long long int*
| %lld
race.cpp:89:42: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
89 | for (int i = 0; i < N - 1; i++)scanf("%d %d %d", &H[i][0], &H[i][1], &L[i]);
| ~^ ~~~~~~~~
| | |
| int* long long int*
| %lld
race.cpp:89:45: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
89 | for (int i = 0; i < N - 1; i++)scanf("%d %d %d", &H[i][0], &H[i][1], &L[i]);
| ~^ ~~~~~~~~
| | |
| int* long long int*
| %lld
race.cpp:89:48: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
89 | for (int i = 0; i < N - 1; i++)scanf("%d %d %d", &H[i][0], &H[i][1], &L[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
race.cpp:91:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
91 | printf("%d\n", fin);
| ~^ ~~~
| | |
| int long long int
| %lld
race.cpp:86:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
86 | scanf("%d %d", &N, &K);
| ~~~~~^~~~~~~~~~~~~~~~~
race.cpp:89:39: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
89 | for (int i = 0; i < N - 1; i++)scanf("%d %d %d", &H[i][0], &H[i][1], &L[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccG8lGRi.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cclskFP1.o:race.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccG8lGRi.o: in function `main':
grader.cpp:(.text.startup+0x28): undefined reference to `best_path(int, int, int (*) [2], int*)'
collect2: error: ld returned 1 exit status