fork download
  1.  
  2. void setSocketIds(Socket (&sockets)[8])
  3. {
  4. for(int i; i < 9; i++)
  5. {
  6. Socket * sock = &sockets[i];
  7. sock->id = i;
  8. }
  9. }
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:19: error: variable or field 'setSocketIds' declared void
 void setSocketIds(Socket (&sockets)[8])
                   ^
prog.cpp:2:28: error: 'sockets' was not declared in this scope
 void setSocketIds(Socket (&sockets)[8])
                            ^
prog.cpp:2:35: error: 'Socket' was not declared in this scope
 void setSocketIds(Socket (&sockets)[8])
                                   ^
stdout
Standard output is empty