escape_route.cpp: In function 'int main()':
escape_route.cpp:27:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
27 | scanf(" %d",&S);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
escape_route.cpp:93:61: 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=]
93 | for(int k = 0; k < N; k++) printf("%d ",ds[i][j][k]);
| ~^
| |
| int
| %lld
escape_route.cpp:174:37: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
174 | printf(" %d\n",incre);
| ~^ ~~~~~
| | |
| int long long int
| %lld
escape_route.cpp:214:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
214 | printf("%d %d %d\n",it,d[u][it][v],d[u][it][u]);
| ~^ ~~
| | |
| int long long int
| %lld
escape_route.cpp:214:39: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
214 | printf("%d %d %d\n",it,d[u][it][v],d[u][it][u]);
| ~^ ~~~~~~~~~~~
| | |
| int long long int
| %lld
escape_route.cpp:214:42: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
214 | printf("%d %d %d\n",it,d[u][it][v],d[u][it][u]);
| ~^ ~~~~~~~~~~~
| | |
| int long long int
| %lld
escape_route.cpp:229:45: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
229 | for(long long int i : ans) printf("%d\n",i);
| ~^ ~
| | |
| int long long int
| %lld
escape_route.cpp:25:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf(" %d",&N);
| ~~~~~^~~~~~~~~~
escape_route.cpp:26:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf(" %d",&M);
| ~~~~~^~~~~~~~~~
escape_route.cpp:27:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | scanf(" %d",&S);
| ~~~~~^~~~~~~~~~
escape_route.cpp:28:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | scanf(" %d",&Q);
| ~~~~~^~~~~~~~~~
escape_route.cpp:34:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | scanf(" %d",&h);
| ~~~~~^~~~~~~~~~
escape_route.cpp:35:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | scanf(" %d",&h1);
| ~~~~~^~~~~~~~~~~
escape_route.cpp:36:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf(" %lld",&h2);
| ~~~~~^~~~~~~~~~~~~
escape_route.cpp:37:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | scanf(" %lld",&h3);
| ~~~~~^~~~~~~~~~~~~
escape_route.cpp:206:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
206 | scanf(" %d",&u);
| ~~~~~^~~~~~~~~~
escape_route.cpp:207:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
207 | scanf(" %d",&v);
| ~~~~~^~~~~~~~~~
escape_route.cpp:208:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
208 | scanf(" %lld",&h);
| ~~~~~^~~~~~~~~~~~
/usr/bin/ld: /tmp/cc5tlsxN.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccbhzVuu.o:escape_route.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc5tlsxN.o: in function `main':
grader.cpp:(.text.startup+0x6e0): undefined reference to `calculate_necessary_time(int, int, long long, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<long long, std::allocator<long long> >, std::vector<long long, std::allocator<long long> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<long long, std::allocator<long long> >)'
collect2: error: ld returned 1 exit status