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_20270011_18382.cpp:3:5: error: 'nbsp' declared as reference but not initialized
 int shu(char a)
     ^
0_0_20270011_18382.cpp:3:23: error: expected ')' before ';' token
 int shu(char a)
                       ^
0_0_20270011_18382.cpp:3:23: error: expected constructor, destructor, or type conversion before ';' token
0_0_20270011_18382.cpp:3:24: error: 'a' does not name a type
 int shu(char a)
                        ^
0_0_20270011_18382.cpp:7:5: error: redefinition of 'int& nbsp'
 int main(){
     ^
0_0_20270011_18382.cpp:3:5: note: 'int& nbsp' previously declared here
 int shu(char a)
     ^
0_0_20270011_18382.cpp: In function 'int main()':
0_0_20270011_18382.cpp:8:7: error: 'nbsp' declared as reference but not initialized
  char a[1000], b[1000];
       ^
0_0_20270011_18382.cpp:8:12: error: 'a' was not declared in this scope
  char a[1000], b[1000];
            ^
0_0_20270011_18382.cpp:8:21: error: 'b' was not declared in this scope
  char a[1000], b[1000];
                     ^
0_0_20270011_18382.cpp:9:6: error: conflicting declaration 'int& nbsp'
  int num[1001];
      ^
0_0_20270011_18382.cpp:8:7: note: previous declaration as 'char& nbsp'
  char a[1000], b[1000];
       ^
0_0_20270011_18382.cpp:9:11: error: 'num' was not declared in this scope
  int num[1001];
           ^
0_0_20270011_18382.cpp:10:6: error: conflicting declaration 'int& nbsp'
  int n, i, j = 1, al, bl, k, t;
      ^
0_0_20270011_18382.cpp:8:7: note: previous declaration as 'char& nbsp'
  char a[1000], b[1000];
       ^
0_0_20270011_18382.cpp:10:11: error: 'n' was not declared in this scope
  int n, i, j = 1, al, bl, k, t;
           ^
0_0_20270011_18382.cpp:10:14: error: 'i' was not declared in this scope
  int n, i, j = 1, al, bl, k, t;
              ^
0_0_20270011_18382.cpp:10:17: error: 'j' was not declared in this scope
  int n, i, j = 1, al, bl, k, t;
                 ^
0_0_20270011_18382.cpp:10:24: error: 'al' was not declared in this scope
  int n, i, j = 1, al, bl, k, t;
                        ^
0_0_20270011_18382.cpp:10:28: error: 'bl' was not declared in this scope
  int n, i, j = 1, al, bl, k, t;
                            ^
0_0_20270011_18382.cpp:10:32: error: 'k' was not declared in this scope
  int n, i, j = 1, al, bl, k, t;
                                ^
0_0_20270011_18382.cpp:10:35: error: 't' was not declared in this scope
  int n, i, j = 1, al, bl, k, t;
                                   ^
0_0_20270011_18382.cpp:26:25: error: 'shu' was not declared in this scope
    num[k] += shu(a[--al]) + shu(b[--bl]);
                         ^
0_0_20270011_18382.cpp:36:27: error: 'shu' was not declared in this scope
    num[k--] += shu(a[--al]);
                           ^
0_0_20270011_18382.cpp:45:27: error: 'shu' was not declared in this scope
    num[k--] += shu(b[--bl]);
                           ^
0_0_20270011_18382.cpp:63:9: error: invalid conversion from 'char*' to 'int' [-fpermissive]
  return 0;
         ^


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-18 16:26:44, Gzip enabled