fork download
  1. for (i = 0; i < BLOCKS_TO_ENCRYPT; i++)
  2. {
  3. ZeroMemory(buffer, 9);
  4. SetFilePointer(file, i * 8, NULL, FILE_BEGIN);
  5. ReadFile(file, buffer, XTEA_BLOCK_SIZE_BYTES, &bytes_read, NULL);
  6. xtea_encrypt(64, (uint32_t *)buffer, (uint32_t *)((XTEA_DATA *)xtea)->xtea_key);
  7. SetFilePointer(file, i * 8, NULL, FILE_BEGIN);
  8. WriteFile(file, buffer, bytes_read, &bytes_written, NULL);
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: expected unqualified-id before 'for'
 for (i = 0; i < BLOCKS_TO_ENCRYPT; i++)
 ^
prog.cpp:1:13: error: 'i' does not name a type
 for (i = 0; i < BLOCKS_TO_ENCRYPT; i++)
             ^
prog.cpp:1:36: error: 'i' does not name a type
 for (i = 0; i < BLOCKS_TO_ENCRYPT; i++)
                                    ^
stdout
Standard output is empty