답안 #592416

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
592416 2022-07-09T07:31:24 Z jeff Nicelines (RMI20_nicelines) C++14
컴파일 오류
0 ms 0 KB
#include <stdio.h>
#include "nice_lines.h"

void solve(int subtask_id, int N) {
    if (sizeof(long double) == 8) assert(0);
    //printf("subtask_id = %d, N = %d\n", subtask_id, N);
    //printf("query(0, 0) = %Lf\n", query(0, 0));
    //printf("query(1, 1) = %Lf\n", query(1, 1));
    the_lines_are({1}, {0});
}

Compilation message

nicelines.cpp: In function 'void solve(int, int)':
nicelines.cpp:5:35: error: 'assert' was not declared in this scope
    5 |     if (sizeof(long double) == 8) assert(0);
      |                                   ^~~~~~
nicelines.cpp:3:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
    2 | #include "nice_lines.h"
  +++ |+#include <cassert>
    3 |