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_20326366_19224.cpp:2:5: error: 'nbsp' declared as reference but not initialized
 int mod(int a,int b,int k){  
     ^
0_0_20326366_19224.cpp:2:22: error: expected ')' before ';' token
 int mod(int a,int b,int k){  
                      ^
0_0_20326366_19224.cpp:2:22: error: expected constructor, destructor, or type conversion before ';' token
0_0_20326366_19224.cpp:2:23: error: 'a' does not name a type
 int mod(int a,int b,int k){  
                       ^
0_0_20326366_19224.cpp:2:34: error: 'b' does not name a type
 int mod(int a,int b,int k){  
                                  ^
0_0_20326366_19224.cpp:2:45: error: 'k' does not name a type
 int mod(int a,int b,int k){  
                                             ^
0_0_20326366_19224.cpp:11:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_20326366_19224.cpp:11:13: error: expected constructor, destructor, or type conversion before ';' token
 }  
             ^
0_0_20326366_19224.cpp:12:5: error: redefinition of 'int& nbsp'
 int main(){  
     ^
0_0_20326366_19224.cpp:2:5: note: 'int& nbsp' previously declared here
 int mod(int a,int b,int k){  
     ^
0_0_20326366_19224.cpp: In function 'int main()':
0_0_20326366_19224.cpp:13:29: error: 'nbsp' declared as reference but not initialized
     int a,b;  
                             ^
0_0_20326366_19224.cpp:13:34: error: 'a' was not declared in this scope
     int a,b;  
                                  ^
0_0_20326366_19224.cpp:13:36: error: 'b' was not declared in this scope
     int a,b;  
                                    ^
0_0_20326366_19224.cpp:15:73: error: 'mod' was not declared in this scope
         printf("%d\n",mod(a,b,10));  
                                                                         ^
0_0_20326366_19224.cpp:16:32: error: invalid conversion from 'int*' to 'int' [-fpermissive]
     return 0;  
                                ^
0_0_20326366_19224.cpp: At global scope:
0_0_20326366_19224.cpp:17:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_20326366_19224.cpp:17: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-26 08:18:47, Gzip enabled