fork download
  1. #include <inttypes.h>
  2.  
  3. #define HASHSIZE 101;
  4.  
  5. /* hash: 大文字 s に対してハッシュの値を求める */
  6. uint32_t hash(char *s) {
  7. uint32_t hashval;
  8.  
  9. for (hashval = 0; *s != '\0'; s++) {
  10. hashval = *s + 31 * hashval;
  11. }
  12. return hashval % HASHSIZE;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty