[ create a new paste ] login | about

Link: http://codepad.org/rAjUMr2i    [ raw code | output | fork ]

C++, pasted on Feb 18:
1
2
3
4
5
6
int main()
{
  int n = 1;
  int a[n];
  return 0;
}


Output:
1
2
3
In function 'int main()':
Line 4: error: ISO C++ forbids variable-size array 'a'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: