Submission #1024992

#TimeUsernameProblemLanguageResultExecution timeMemory
1024992MardonbekhazratovOvertaking (IOI23_overtaking)C++17
0 / 100
1 ms348 KiB
#include "overtaking.h" #include <iostream> #include <tuple> using namespace std; int l,n,x,m; vector<long long>t; vector<int>w,s; void init(int L, int N, std::vector<long long> T, std::vector<int> W, int X, int M, std::vector<int> S){ tie(l,n,x,m,t,w,s)=tie(L,N,X,M,T,W,S); return; } long long arrival_time(long long Y){ if(n==1) return Y+1ll*x*l; }

Compilation message (stderr)

overtaking.cpp: In function 'long long int arrival_time(long long int)':
overtaking.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type]
   18 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...