Submission #864027

#TimeUsernameProblemLanguageResultExecution timeMemory
864027Ice_manTruck Driver (IOI23_deliveries)C++17
Compilation error
0 ms0 KiB
#include "deliveries.h" #include <iostream> #include <vector> #define maxn 100005 #define maxq 300005 #define INF 1000000010 #define endl '\n' using namespace std; int n; int pomm[maxn]; int pomm2[maxn]; void init(int N, vector<int> U, vector<int> V, vector<int> T, vector<int> W) { n = N; W[0]++; for(int i = 0; i < n; i++){ pomm[i] = W[i];pomm2[i] = T[i];} } int64_t max_time(int S , int X) { pomm[S] = X; int minn = min(pomm[0] , pomm[1]); return 2 * pomm2[0] * minn; }

Compilation message (stderr)

deliveries.cpp:25:9: error: ambiguating new declaration of 'int64_t max_time(int, int)'
   25 | int64_t max_time(int S , int X)
      |         ^~~~~~~~
In file included from deliveries.cpp:1:
deliveries.h:5:11: note: old declaration 'long long int max_time(int, int)'
    5 | long long max_time(int S, int X);
      |           ^~~~~~~~