Submission #646606

#TimeUsernameProblemLanguageResultExecution timeMemory
646606danikoynovNicelines (RMI20_nicelines)C++14
Compilation error
0 ms0 KiB
/**
 ____ ____ ____ ____ ____ ____
||l |||e |||i |||n |||a |||d ||
||__|||__|||__|||__|||__|||__||
|/__\|/__\|/__\|/__\|/__\|/__\|

**/

#include<bits/stdc++.h>
#define endl '\n'

using namespace std;
typedef long long ll;

void solve(int subtask_id, int N)
{
    long double d1 = query(0, 0);
    long double d2 = query(0, 1);

    long double y1 = d1 / (d1 - d2);

    long double d3 = query(1, 0);
    long double d4 = query(1, 1);

    long double y2 = d3 / (d3 - d4);

    vector < int > a, b;
    a.push_back(y2 - y1);
    b.push_back(y1);
    the_lines_are(a, b);
}


Compilation message (stderr)

nicelines.cpp: In function 'void solve(int, int)':
nicelines.cpp:17:22: error: 'query' was not declared in this scope
   17 |     long double d1 = query(0, 0);
      |                      ^~~~~
nicelines.cpp:30:5: error: 'the_lines_are' was not declared in this scope
   30 |     the_lines_are(a, b);
      |     ^~~~~~~~~~~~~