Submission #1257949

#TimeUsernameProblemLanguageResultExecution timeMemory
1257949Canuc80kTriple Peaks (IOI25_triples)C++20
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" using namespace std; using ll = long long; using ld = long double; using ull = unsigned long long; std::vector<int> construct_range(int M, int K) { vector<ll> res; res.push_back(1); for (int i = 1; i < M; i ++) res.push_back(i); return res; }

Compilation message (stderr)

triples.cpp: In function 'std::vector<int> construct_range(int, int)':
triples.cpp:10:12: error: could not convert 'res' from 'vector<long long int>' to 'vector<int>'
   10 |     return res;
      |            ^~~
      |            |
      |            vector<long long int>