0_0_15054687_30422.cpp:10:9: error: macro names must be identifiers
#define 1 ok
^
0_0_15054687_30422.cpp:11:9: error: macro names must be identifiers
#define 0 error
^
0_0_15054687_30422.cpp: In function 'char Initstack(Spstack*)':
0_0_15054687_30422.cpp:23:18: error: 'error' was not declared in this scope
return error;
^
0_0_15054687_30422.cpp:26:14: error: 'ok' was not declared in this scope
return ok;
^
0_0_15054687_30422.cpp: In function 'char Stackempty(Spstack*)':
0_0_15054687_30422.cpp:32:17: error: 'ok' was not declared in this scope
return ok;
^
0_0_15054687_30422.cpp:34:17: error: 'error' was not declared in this scope
return error;
^
0_0_15054687_30422.cpp: In function 'char Push(Spstack*, char)':
0_0_15054687_30422.cpp:43:21: error: 'error' was not declared in this scope
return error;
^
0_0_15054687_30422.cpp:48:13: error: 'ok' was not declared in this scope
return ok;
^
0_0_15054687_30422.cpp: In function 'char Pop(Spstack*, char*)':
0_0_15054687_30422.cpp:54:17: error: 'error' was not declared in this scope
return error;
^
0_0_15054687_30422.cpp:56:13: error: 'ok' was not declared in this scope
return ok;
^
0_0_15054687_30422.cpp: In function 'char Count(Spstack*, char)':
0_0_15054687_30422.cpp:91:17: error: 'ok' was not declared in this scope
return ok;
^
0_0_15054687_30422.cpp:98:1: error: a function-definition is not allowed here before '{' token
{
^
0_0_15054687_30422.cpp:103:2: error: expected '}' at end of input
}
^
0_0_15054687_30422.cpp:103:2: error: expected '}' at end of input
|