Submission #424026

#TimeUsernameProblemLanguageResultExecution timeMemory
424026madlogicVision Program (IOI19_vision)C++17
Compilation error
0 ms0 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; void construct_network(int H, int W, int K) { for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { for (int k = 0; k < H; k++) { for (int x = 0; x < W; x++) { int xx = i * W + j; int yy = k * W + x; if (add_and(xx, yy) == 1) { return; } } } } } }

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:12:23: error: could not convert 'xx' from 'int' to 'std::vector<int>'
   12 |           if (add_and(xx, yy) == 1) {
      |                       ^~
      |                       |
      |                       int