0_0_15198109_17896.cpp: In function 'void fibbonacci(int)':
0_0_15198109_17896.cpp:9:28: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(s[n] != -1) return s[n];
^
0_0_15198109_17896.cpp:10:38: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(n == 0 || n == 1) return s[n] = n;
^
0_0_15198109_17896.cpp:12:49: error: invalid operands of types 'void' and 'void' to binary 'operator+'
return s[n] = fibbonacci(n) + fibbonacci(n - 1);
^
0_0_15198109_17896.cpp:12:49: error: return-statement with a value, in function returning 'void' [-fpermissive]
0_0_15198109_17896.cpp: In function 'int main()':
0_0_15198109_17896.cpp:18:29: error: 'memset' was not declared in this scope
memset(s, -1 , sizeof(s));
^
0_0_15198109_17896.cpp:21:39: error: invalid use of void expression
printf("%I64d\n",fibbonacci(n));
^
|