Submission #319462

#TimeUsernameProblemLanguageResultExecution timeMemory
319462shaf_wa_nurICC (CEOI16_icc)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "icc.h" using namespace std; void run(int n) { int cnt = 0; while (cnt != n - 1) { for (int x = 1; x <= n; x++) { for (int y = x + 1; y <= n; y++) { int _a[] = {x}; int _b[] = {y}; ret = query(1, 1, _a, _b); if (ret) { cnt += 1; setRoad(x, y); } } } } }

Compilation message (stderr)

icc.cpp: In function 'void run(int)':
icc.cpp:13:9: error: 'ret' was not declared in this scope
   13 |         ret = query(1, 1, _a, _b);
      |         ^~~