# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
719836 |
2023-04-06T20:02:58 Z |
ovidiush11 |
Wall (IOI14_wall) |
C++14 |
|
0 ms |
0 KB |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "wall.h"
#include "wall.cpp"
int main()
{
int n;
int k;
int i, j;
int status = 0;
status = scanf("%d%d", &n, &k);
assert(status == 2);
int* op = (int*)calloc(sizeof(int), k);
int* left = (int*)calloc(sizeof(int), k);
int* right = (int*)calloc(sizeof(int), k);
int* height = (int*)calloc(sizeof(int), k);
int* finalHeight = (int*)calloc(sizeof(int), n);
for (i = 0; i < k; i++){
status = scanf("%d%d%d%d", &op[i], &left[i], &right[i], &height[i]);
assert(status == 4);
}
buildWall(n, k, op, left, right, height, finalHeight);
for (j = 0; j < n; j++)
printf("%d\n", finalHeight[j]);
return 0;
}
Compilation message
wall.cpp:6:10: fatal error: wall.cpp: No such file or directory
6 | #include "wall.cpp"
| ^~~~~~~~~~
compilation terminated.