#include 2 using namespace std; 3. 4 int main(){ int n; 6. int a[]; 7. for (int i=0;i>a[i]; 8 6. 10 11 } input Compilation failed due to following error(s). main.cpp:6:9: error: storage size of 'a'...

How to remove this error please help!!!#include<iostream><br>2 using namespace std;<br>3.<br>4 int main(){<br>int n;<br>6.<br>int a[];<br>7.<br>for (int i=0;i<n;i++){<br>cin>>a[i];<br>8<br>6.<br>10<br>11 }<br>input<br>Compilation failed due to following error(s).<br>main.cpp:6:9: error: storage size of 'a' isn't known<br>int a[];<br>

Extracted text: #include 2 using namespace std; 3. 4 int main(){ int n; 6. int a[]; 7. for (int i=0;i>a[i]; 8 6. 10 11 } input Compilation failed due to following error(s). main.cpp:6:9: error: storage size of 'a' isn't known int a[];

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here