Submission #832795

# Submission time Handle Problem Language Result Execution time Memory
832795 2023-08-21T15:22:24 Z Minindu206 Vision Program (IOI19_vision) C++14
Compilation error
0 ms 0 KB
#include "vision.h"
#include <bits/stdc++.h>
using namespace std;
void construct_network(int h, int w, int k)
{
	vector<int> inds;
	for (int i = 0; i < h; i++)
	{
		for (int j = 0; j < w; j++)
		{
			if(i + j == k)
			{
				inds.push_back(i * w + j);
			}
		}
	}
	add_or(inds)
}

Compilation message

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:17:14: error: expected ';' before '}' token
   17 |  add_or(inds)
      |              ^
      |              ;
   18 | }
      | ~