#include<iostream> #include<vector> using namespace std; int n=6; int visited[n]={0}; int main() { cout<<visited[0]; }
Standard input is empty
prog.cpp:6:14: error: array bound is not an integer constant before ‘]’ token
int visited[n]={0};
^
prog.cpp: In function ‘int main()’:
prog.cpp:10:8: error: ‘visited’ was not declared in this scope
cout<<visited[0];
^~~~~~~
Standard output is empty