ERROR:
sandpiles.cpp:36: error: two or more data types in declaration of `parameter'
sandpiles.cpp: In function `int main(int, char**)':
sandpiles.cpp:41: error: syntax error before `=' token
sandpiles.cpp:42: error: syntax error before `=' token
sandpiles.cpp:46: error: syntax error before `]' token
sandpiles.cpp:60: error: syntax error before `,' token
sandpiles.cpp: At global scope:
sandpiles.cpp:78: error: two or more data types in declaration of `parameter'
sandpiles.cpp: In function `void cycle(int, int, int, std::vector<int,
std::allocator<int> >&)':
sandpiles.cpp:86: error: syntax error before `]' token
CODE chunk:
void cycle(int num, int gl, int void, vector<int> &piles);
int main( int argc, char* argv[]) {
int gl = atoi(argv[1]);
int void = 0;
if (argc > 2) void = argv[2];
if (gl < 3) {while (gl < 3) { cout << "Enter length: "; cin >> gl; }}
int gla = gl*gl;
vector<int> piles(gla);
piles[void] = 0;