fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. const int NUM_SQUARES = 9;
  7. vector<char> board(NUM_SQUARES, 'X');
  8. cout << board[0] << endl; // prints X
  9. return 0;
  10. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
X