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_33547637_32718.cpp:6:18: error: expected ']' before ';' token
 #define N 3000005;
                  ^
0_0_33547637_32718.cpp:7:15: note: in expansion of macro 'N'
 long long fib[N] = { 1,2 };
               ^
0_0_33547637_32718.cpp:7:16: error: expected unqualified-id before ']' token
 long long fib[N] = { 1,2 };
                ^
0_0_33547637_32718.cpp:6:18: error: expected ']' before ';' token
 #define N 3000005;
                  ^
0_0_33547637_32718.cpp:8:9: note: in expansion of macro 'N'
 int fal[N];
         ^
0_0_33547637_32718.cpp:8:10: error: expected unqualified-id before ']' token
 int fal[N];
          ^
0_0_33547637_32718.cpp: In function 'void fi()':
0_0_33547637_32718.cpp:11:23: error: expected primary-expression before ';' token
  for (int i = 2; i < N; i++)
                       ^
0_0_33547637_32718.cpp:11:23: error: expected ')' before ';' token
0_0_33547637_32718.cpp:11:25: error: 'i' was not declared in this scope
  for (int i = 2; i < N; i++)
                         ^
0_0_33547637_32718.cpp: In function 'int main()':
0_0_33547637_32718.cpp:27:22: error: 'fib' was not declared in this scope
                 a += fib[i];
                      ^
0_0_33547637_32718.cpp:34:22: error: 'fib' was not declared in this scope
                 b += fib[i];
                      ^
0_0_33547637_32718.cpp:39:18: error: 'fal' was not declared in this scope
             cin>>fal[i];
                  ^
0_0_33547637_32718.cpp:41:22: error: 'fib' was not declared in this scope
                 c += fib[i];
                      ^
0_0_33547637_32718.cpp:47:16: error: 'fal' was not declared in this scope
             if(fal[i] == 0){
                ^
0_0_33547637_32718.cpp:48:34: error: 'fib' was not declared in this scope
                 long long w = c +fib[i];
                                  ^


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-26 10:44:02, Gzip enabled