0

It shows error saying the variable cant be used to declare the array I don't know why, am I missing some header files?

#include<iostream>
#include<conio.h>
#include<vector>
#include<stdio.h>
#include<algorithm>
#include<math.h>
#include<queue>
#include<stack>
#include<map>
#include<unordered_map>
#include<set> 

int main()
{
    int v=4;
    bool visited[v]; //part of the code... 
}
Etienne de Martel
  • 32,266
  • 8
  • 91
  • 105

0 Answers0