Submission #592418

# Submission time Handle Problem Language Result Execution time Memory
592418 2022-07-09T07:32:03 Z jeff Nicelines (RMI20_nicelines) C++14
Compilation error
0 ms 0 KB
#include <stdio.h>
#include "nice_lines.h"
 
void solve(int subtask_id, int N) {
    if (sizeof(long double) == 12) 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:36: error: 'assert' was not declared in this scope
    5 |     if (sizeof(long double) == 12) 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 |