fork download
  1. int mark = 0;
  2. for(int i = 0; i < BLOCK_SIZE; i++){
  3. mark += block[i]*(2 << (1 - i));
  4. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:1: error: expected unqualified-id before 'for'
 for(int i = 0; i < BLOCK_SIZE; i++){
 ^
prog.cpp:2:16: error: 'i' does not name a type
 for(int i = 0; i < BLOCK_SIZE; i++){
                ^
prog.cpp:2:32: error: 'i' does not name a type
 for(int i = 0; i < BLOCK_SIZE; i++){
                                ^
stdout
Standard output is empty