Submission #374316

#TimeUsernameProblemLanguageResultExecution timeMemory
374316NONAMEEuklid (COCI20_euklid)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

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;
      |                 ^