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_15291374_11866.cpp:4:15: error: expected initializer before numeric constant
 const int LEN 100;
               ^
0_0_15291374_11866.cpp:5:15: error: expected initializer before numeric constant
 const int HLE 50;
               ^
0_0_15291374_11866.cpp:7:11: error: 'LEN' was not declared in this scope
     int a[LEN];
           ^
0_0_15291374_11866.cpp: In member function 'void fbn::init()':
0_0_15291374_11866.cpp:10:16: error: 'a' was not declared in this scope
         memset(a, 0, sizeof(a));
                ^
0_0_15291374_11866.cpp: In member function 'void fbn::print()':
0_0_15291374_11866.cpp:15:29: error: 'HLE' was not declared in this scope
         for (int i = 0; i < HLE; i++) {
                             ^
0_0_15291374_11866.cpp:16:17: error: 'a' was not declared in this scope
             if (a[i] != 0) b = true;
                 ^
0_0_15291374_11866.cpp:17:41: error: 'a' was not declared in this scope
             if (b == true) printf("%d", a[i]);
                                         ^
0_0_15291374_11866.cpp:22:30: error: 'a' was not declared in this scope
                 printf("%d", a[i + HLE]);
                              ^
0_0_15291374_11866.cpp:22:36: error: 'HLE' was not declared in this scope
                 printf("%d", a[i + HLE]);
                                    ^
0_0_15291374_11866.cpp: In function 'bool check(FBN)':
0_0_15291374_11866.cpp:31:25: error: 'LEN' was not declared in this scope
     for (int i = 0; i < LEN; i++) {
                         ^
0_0_15291374_11866.cpp:32:15: error: 'FBN' has no member named 'a'
         if (a.a[i] > 1) {t = false; break;}
               ^
0_0_15291374_11866.cpp:33:33: error: 'FBN' has no member named 'a'
         if ((i != LEN - 1) && a.a[i] == 1 && a.a[i + 1] == 1) {t = false; break;}
                                 ^
0_0_15291374_11866.cpp:33:48: error: 'FBN' has no member named 'a'
         if ((i != LEN - 1) && a.a[i] == 1 && a.a[i + 1] == 1) {t = false; break;}
                                                ^
0_0_15291374_11866.cpp: In function 'FBN normalize(FBN)':
0_0_15291374_11866.cpp:42:29: error: 'LEN' was not declared in this scope
         for (int i = 0; i < LEN; i++) {
                             ^
0_0_15291374_11866.cpp:43:19: error: 'FBN' has no member named 'a'
             if (a.a[i] > 1) {
                   ^
0_0_15291374_11866.cpp:44:23: error: 'FBN' has no member named 'a'
                 t = a.a[i] / 2;
                       ^
0_0_15291374_11866.cpp:45:19: error: 'FBN' has no member named 'a'
                 a.a[i] %= 2;
                   ^
0_0_15291374_11866.cpp:46:19: error: 'FBN' has no member named 'a'
                 a.a[i - 1] += 1;
                   ^
0_0_15291374_11866.cpp:47:19: error: 'FBN' has no member named 'a'
                 a.a[i + 2] += 1;
                   ^
0_0_15291374_11866.cpp:49:37: error: 'FBN' has no member named 'a'
             if ((i != LEN - 1) && a.a[i] == 1 && a.a[i + 1] == 1) {
                                     ^
0_0_15291374_11866.cpp:49:52: error: 'FBN' has no member named 'a'
             if ((i != LEN - 1) && a.a[i] == 1 && a.a[i + 1] == 1) {
                                                    ^
0_0_15291374_11866.cpp:50:19: error: 'FBN' has no member named 'a'
                 a.a[i - 1] += 1;
                   ^
0_0_15291374_11866.cpp:51:19: error: 'FBN' has no member named 'a'
                 a.a[i] = 0;
                   ^
0_0_15291374_11866.cpp:52:19: error: 'FBN' has no member named 'a'
                 a.a[i + 1] = 0;
                   ^
0_0_15291374_11866.cpp:56:18: error: 'LEN' was not declared in this scope
     for (int i = LEN - 1; i >= HLE; i--) {
                  ^
0_0_15291374_11866.cpp:56:32: error: 'HLE' was not declared in this scope
     for (int i = LEN - 1; i >= HLE; i--) {
                                ^
0_0_15291374_11866.cpp:57:15: error: 'FBN' has no member named 'a'
         if (a.a[i] != 0) {
               ^
0_0_15291374_11866.cpp: In function 'FBN add(FBN, FBN)':
0_0_15291374_11866.cpp:69:25: error: 'LEN' was not declared in this scope
     for (int i = 0; i < LEN; i++) {
                         ^
0_0_15291374_11866.cpp:70:13: error: 'FBN' has no member named 'a'
         ans.a[i] = a.a[i] + b.a[i];
             ^
0_0_15291374_11866.cpp:70:22: error: 'FBN' has no member named 'a'
         ans.a[i] = a.a[i] + b.a[i];
                      ^
0_0_15291374_11866.cpp:70:31: error: 'FBN' has no member named 'a'
         ans.a[i] = a.a[i] + b.a[i];
                               ^
0_0_15291374_11866.cpp: In function 'int main()':
0_0_15291374_11866.cpp:81:13: error: 'FBN' has no member named 'a'
     twob[0].a[HLE - 1] = 1;
             ^
0_0_15291374_11866.cpp:81:15: error: 'HLE' was not declared in this scope
     twob[0].a[HLE - 1] = 1;
               ^


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-23 00:29:19, Gzip enabled