Submission #1081069

# Submission time Handle Problem Language Result Execution time Memory
1081069 2024-08-29T17:54:27 Z Kipras Longest Trip (IOI23_longesttrip) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;

vector<int> longest_trip(int N, int D)
{
    if(D==3||D==2)return N;
}

Compilation message

longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:7:26: error: could not convert 'N' from 'int' to 'std::vector<int>'
    7 |     if(D==3||D==2)return N;
      |                          ^
      |                          |
      |                          int