Can someone tell what is wrong with my code ?
Here is my code :-
#include<stdio.h>#include<iostream>#include<algorithm>#include<limits.h>using namespace std;bool maps[501][100001];int main(){int ans = 0;for(int i=0;i<501;++i){for(int j=0;j<100001;++j){maps[i][j] = true;}}int n;scanf("%d" , &n);for(int i=0;i<n;++i){int x , y;scanf("%d%d" , &x , &y);maps[y][x] = false;}