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
}
^
|