Thak you. Now it's working.
Type: Posts; User: vasil_9x
Thak you. Now it's working.
Try to input
3 3
1 3
1 2
3 1
I think that the result is incorrect.
The program returns me 1. I think that there is a mistake in one of the cycles. But I cant find where.
#include<iostream>
#include<vector>
#include<queue.h>
#define NMAX 1024
using...