0_0_24644126_32618.c:2:1: error: unknown type name 'using'
using namespace std;
^
0_0_24644126_32618.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^
0_0_24644126_32618.c:4:1: error: unknown type name 'bool'
bool judge(char *_cup1,char *_cup2){
^
0_0_24644126_32618.c: In function 'write':
0_0_24644126_32618.c:15:11: error: 'cup1' undeclared (first use in this function)
++cup1;
^
0_0_24644126_32618.c:15:11: note: each undeclared identifier is reported only once for each function it appears in
0_0_24644126_32618.c:16:11: error: 'cup2' undeclared (first use in this function)
++cup2;
^
0_0_24644126_32618.c: In function 'main':
0_0_24644126_32618.c:22:17: error: 'new' undeclared (first use in this function)
char *color=new char[32];
^
0_0_24644126_32618.c:22:21: error: expected ',' or ';' before 'char'
char *color=new char[32];
^
0_0_24644126_32618.c:23:16: error: expected ',' or ';' before 'int'
int *a=new int[cup];
^
0_0_24644126_32618.c:25:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0;i<cup;i++){
^
0_0_24644126_32618.c:25:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_24644126_32618.c:28:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int q=0;q<coun;q++){
^
0_0_24644126_32618.c:40:5: error: expected ';' before '}' token
}printf("%s\n",color[b]);
^
|