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_20446904_25937.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <stdio.h>  
         ^
0_0_20446904_25937.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include <string.h>  
         ^
0_0_20446904_25937.cpp:3:6: error: 'nbsp' declared as reference but not initialized
 char f(char str[]){  
      ^
0_0_20446904_25937.cpp:3:22: error: expected ')' before ';' token
 char f(char str[]){  
                      ^
0_0_20446904_25937.cpp:3:22: error: expected constructor, destructor, or type conversion before ';' token
0_0_20446904_25937.cpp:3:23: error: 'str' does not name a type
 char f(char str[]){  
                       ^
0_0_20446904_25937.cpp:11:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_20446904_25937.cpp:11:13: error: expected constructor, destructor, or type conversion before ';' token
 }  
             ^
0_0_20446904_25937.cpp:12:5: error: conflicting declaration 'int& nbsp'
 int main(){  
     ^
0_0_20446904_25937.cpp:3:6: note: previous declaration as 'char& nbsp'
 char f(char str[]){  
      ^
0_0_20446904_25937.cpp: In function 'int main()':
0_0_20446904_25937.cpp:13:29: error: 'nbsp' declared as reference but not initialized
     int z;  
                             ^
0_0_20446904_25937.cpp:13:34: error: 'z' was not declared in this scope
     int z;  
                                  ^
0_0_20446904_25937.cpp:14:30: error: conflicting declaration 'char& nbsp'
     char s[1024];  
                              ^
0_0_20446904_25937.cpp:13:29: note: previous declaration as 'int& nbsp'
     int z;  
                             ^
0_0_20446904_25937.cpp:14:35: error: 's' was not declared in this scope
     char s[1024];  
                                   ^
0_0_20446904_25937.cpp:15:41: error: expected ')' before ';' token
     scanf("%d", &z);  
                                         ^
0_0_20446904_25937.cpp:16:33: error: 'getchar' was not declared in this scope
     getchar();  
                                 ^
0_0_20446904_25937.cpp:17:30: error: expected '(' before '&' token
     while ( z-- ){  
                              ^
0_0_20446904_25937.cpp:17:35: error: expected ')' before ';' token
     while ( z-- ){  
                                   ^
0_0_20446904_25937.cpp:17:42: error: expected ')' before ';' token
     while ( z-- ){  
                                          ^
0_0_20446904_25937.cpp:17:52: error: expected primary-expression before ')' token
     while ( z-- ){  
                                                    ^
0_0_20446904_25937.cpp:21:32: error: invalid conversion from 'int*' to 'int' [-fpermissive]
     return 0;  
                                ^
0_0_20446904_25937.cpp: At global scope:
0_0_20446904_25937.cpp:22:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_20446904_25937.cpp:22:13: error: expected constructor, destructor, or type conversion before ';' token
 }  
             ^


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-29 15:00:20, Gzip enabled