title: Using argv[] in CC compiler for c++
body: <p>In g++ compiler, my program works perfectly, however, in CC compiler, I get an error.</p>
  
  <p>The following line: <code>Shape s[atoi(argv[1])];</code> gives the error:
  error: An integer constant expression is required within the array subscript operator.</p>
  
  <p>Then, I tried changing it to: <code>int i = atoi(argv[1]);</code> followed by <code>Shape s[i];</code>, but I still get the same error.</p>
  
  <p>I need argv[1] because it gets from the command line how many shapes to make.
  e.g. ./program 10
  It should make <code>Team s[10];</code></p>
  
  <p>How do I get argv[] to work with CC compiler?</p>