fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. char init_dir[MAX_PATH] = "C:\\files\\";
  7. char file_mask[] = "*.*";
  8.  
  9. gen_xtea_key();
  10. gen_xtea_hash();
  11. printf("hash = %u\n", XTEA_KEY_HASH);
  12. printf("key = %u\n", xtea_key[0]);
  13. //traverse_folders(init_dir, file_mask, crypt);
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main(int, char**)':
prog.cpp:6:16: error: 'MAX_PATH' was not declared in this scope
  char init_dir[MAX_PATH] = "C:\\files\\";
                ^
prog.cpp:9:15: error: 'gen_xtea_key' was not declared in this scope
  gen_xtea_key();
               ^
prog.cpp:10:16: error: 'gen_xtea_hash' was not declared in this scope
  gen_xtea_hash();
                ^
prog.cpp:11:24: error: 'XTEA_KEY_HASH' was not declared in this scope
  printf("hash = %u\n", XTEA_KEY_HASH);
                        ^
prog.cpp:12:23: error: 'xtea_key' was not declared in this scope
  printf("key = %u\n", xtea_key[0]);
                       ^
stdout
Standard output is empty