제출 #719836

#제출 시각아이디문제언어결과실행 시간메모리
719836ovidiush11벽 (IOI14_wall)C++14
컴파일 에러
0 ms0 KiB
#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; }

컴파일 시 표준 에러 (stderr) 메시지

wall.cpp:6:10: fatal error: wall.cpp: No such file or directory
    6 | #include "wall.cpp"
      |          ^~~~~~~~~~
compilation terminated.