Submission #934457

#TimeUsernameProblemLanguageResultExecution timeMemory
934457vjudge1Wall (IOI14_wall)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include <wall.h> using namespace std; void buildWall(int n, int k, vector <int> op, vector <int> left, vector <int> right, vector <int> h, vector <int> &ans){ for(int i = 0; i < n; i++){ ans.push_back(0); } for(int i = 0; i < k; i++){ for(int j = left[i]; j <= right[i]; j++){ if(op[i] == 1) ans[j] = max(h[i], ans[j]); else ans[j] = min(ans[j], h[i]); } } }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccc8u7EN.o: in function `main':
grader.cpp:(.text.startup+0x133): undefined reference to `buildWall(int, int, int*, int*, int*, int*, int*)'
collect2: error: ld returned 1 exit status