답안 #374316

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
374316 2021-03-07T07:41:43 Z NONAME Euklid (COCI20_euklid) C++17
컴파일 오류
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;
      |                 ^