fork download
  1. int LFSR_Fibonacci (void)
  2. {
  3. static unsigned long S = 0x00000001;
  4. S = ((((S >> 31) ^ (S >> 30) ^ (S >> 29) ^ (S >> 27) ^ (S >> 25) ^ S )) & 0x00000001 ) << 31 ) | (S >> 1);
  5. return S & 0x00000001;
  6. }
  7.  
  8. void main(void){}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'LFSR_Fibonacci':
prog.c:4:96: error: expected ';' before ')' token
   S = ((((S >> 31) ^ (S >> 30) ^ (S >> 29) ^ (S >> 27) ^ (S >> 25) ^ S )) & 0x00000001 ) << 31 ) | (S >> 1);
                                                                                                ^
prog.c:4:96: error: expected statement before ')' token
prog.c:4:98: error: expected expression before '|' token
   S = ((((S >> 31) ^ (S >> 30) ^ (S >> 29) ^ (S >> 27) ^ (S >> 25) ^ S )) & 0x00000001 ) << 31 ) | (S >> 1);
                                                                                                  ^
prog.c: At top level:
prog.c:8:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main(void){}
      ^
stdout
Standard output is empty