Submission #374316

# Submission time Handle Problem Language Result Execution time Memory
374316 2021-03-07T07:41:43 Z NONAME Euklid (COCI20_euklid) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());

void solve() {
    cin >> g >> h;
    if (g == h) {
        cout << g << " " << g << "\n";
    } else {
        assert(0);
    }
}

int main() {
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

    int t;
    cin >> t;
    while (t--) {
        solve();
    }

    return 0;
}

Compilation message

euklid.cpp: In function 'void solve()':
euklid.cpp:6:12: error: 'g' was not declared in this scope
    6 |     cin >> g >> h;
      |            ^
euklid.cpp:6:17: error: 'h' was not declared in this scope
    6 |     cin >> g >> h;
      |                 ^