Submission #916216

#TimeUsernameProblemLanguageResultExecution timeMemory
916216kachuTruck Driver (IOI23_deliveries)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include "deliveries.h" using namespace std; using namespace __gnu_pbds; #define oset tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> #define ofind find_by_order #define okey order_of_key #define double long double #define pque priority_queue #define dque deque #define que queue #define umap unordered_map #define uset unordered_set #define pipii pair<int, pair<int,int>> #define pii pair<int,int> #define mp make_pair #define pb push_back #define ppb pop_back #define pf push_front #define ppf pop_front #define iter iterator #define endl '\n' #define MOD 1000000007 #define INF 1e18 int a, b, d; void init(int N, int[] U, int[] V, int[] T, int[] W){ a = W[0]; b = W[1]; d = T[0]; } long long max_time(int S, int X){ if (S == 0) a = X; else b = S; int ans; ans = min(a, b) * d; return ans; }

Compilation message (stderr)

deliveries.cpp:33:24: error: expected ',' or '...' before 'U'
   33 | void init(int N, int[] U, int[] V, int[] T, int[] W){
      |                        ^
deliveries.cpp: In function 'void init(int, int*)':
deliveries.cpp:34:6: error: 'W' was not declared in this scope
   34 |  a = W[0];
      |      ^
deliveries.cpp:36:6: error: 'T' was not declared in this scope
   36 |  d = T[0];
      |      ^