1 2 3
#include <iostream> using namespace std; int main(){ int n = 0; cin >> n; int a[n]; int i = 0, j = 0; while( i++ < n) cin >> a[i]; while(j++ < n) cout << a[j]; return 0; }
In function 'int main()': Line 3: error: ISO C++ forbids variable-size array 'a' compilation terminated due to -Wfatal-errors.