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