F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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));
                                       ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 04:51:35, Gzip enabled