Submission #319462

# Submission time Handle Problem Language Result Execution time Memory
319462 2020-11-05T10:44:37 Z shaf_wa_nur ICC (CEOI16_icc) C++17
Compilation error
0 ms 0 KB
#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

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