fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main () {
  5. int n = 1e20;
  6. int a[n];
  7. a[n - 1] = 3;
  8. cout << (sizeof a) << endl;
  9. cout << a[n - 1] << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 4240KB
stdin
Standard input is empty
stdout
8589934588
3