Submission #1252629

#TimeUsernameProblemLanguageResultExecution timeMemory
1252629bzzzzzzzzzzTriple Peaks (IOI25_triples)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "triples.h" using namespace std; using ll = long long; std::vector<int> construct_range(int M, int K) { for (int i = 0; i < M; i++) { v.push_back(1); v.push_back(1); v.push_back(2); v.push_back(2); v.push_back(3); } v.resize(M); return v; } long long count_triples(vector<int> H) { return 0; }

Compilation message (stderr)

triples.cpp: In function 'std::vector<int> construct_range(int, int)':
triples.cpp:8:9: error: 'v' was not declared in this scope
    8 |         v.push_back(1);
      |         ^
triples.cpp:14:5: error: 'v' was not declared in this scope
   14 |     v.resize(M);
      |     ^