제출 #1024991

#제출 시각아이디문제언어결과실행 시간메모리
1024991Mardonbekhazratov추월 (IOI23_overtaking)C++17
컴파일 에러
0 ms0 KiB
#include "overtaking.h" #include <iostream> 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; }

컴파일 시 표준 에러 (stderr) 메시지

overtaking.cpp: In function 'void init(int, int, std::vector<long long int>, std::vector<int>, int, int, std::vector<int>)':
overtaking.cpp:11:5: error: 'tie' was not declared in this scope
   11 |     tie(l,n,x,m,t,w,s)=tie(L,N,X,M,T,W,S);
      |     ^~~
overtaking.cpp:3:1: note: 'std::tie' is defined in header '<tuple>'; did you forget to '#include <tuple>'?
    2 | #include <iostream>
  +++ |+#include <tuple>
    3 | 
overtaking.cpp: In function 'long long int arrival_time(long long int)':
overtaking.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
   17 | }
      | ^