Run id: 107789
Main.cc: In function 'int main()':
Main.cc:6:8: error: 'n' was not declared in this scope
int a[n], n=1001, m, c = 0, d = 0;
^
Main.cc:8:10: error: 'a' was not declared in this scope
cin >> a[i];
^
Main.cc:12:7: error: 'a' was not declared in this scope
if (a[i] >= m && a[i + 1] <= m) {
^
Main.cc:17:3: error: 'a' was not declared in this scope
a[i + 1] = a[i];
^
Main.cc:19:2: error: 'a' was not declared in this scope
a[c] = m;
^
Main.cc:6:30: warning: unused variable 'd' [-Wunused-variable]
int a[n], n=1001, m, c = 0, d = 0;
^