Submission #1257948

#TimeUsernameProblemLanguageResultExecution timeMemory
1257948Canuc80kTriple 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) { cout << M << '\n'; for (int i = 1; i <= M; i ++) cout << 1 << ' '; }

Compilation message (stderr)

triples.cpp: In function 'std::vector<int> construct_range(int, int)':
triples.cpp:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
/usr/bin/ld: /tmp/ccMOEtdA.o: in function `main':
grader.cpp:(.text.startup+0x37b): undefined reference to `count_triples(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status