0_0_28934193_27944.cpp:4:1: error: expected initializer before 'struct'
struct node{
^
0_0_28934193_27944.cpp:6:2: error: 's' does not name a type
}s[1010];
^
0_0_28934193_27944.cpp:7:10: error: 'node' was not declared in this scope
bool cmp(node a,node b){
^
0_0_28934193_27944.cpp:7:17: error: 'node' was not declared in this scope
bool cmp(node a,node b){
^
0_0_28934193_27944.cpp:7:23: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp(node a,node b){
^
0_0_28934193_27944.cpp:7:24: error: expected ',' or ';' before '{' token
bool cmp(node a,node b){
^
0_0_28934193_27944.cpp: In function 'int main()':
0_0_28934193_27944.cpp:16:9: error: 's' was not declared in this scope
cin>>s[i].day;
^
0_0_28934193_27944.cpp:17:9: error: 's' was not declared in this scope
cin>>s[i].fen;
^
0_0_28934193_27944.cpp:19:10: error: 'book' was not declared in this scope
memset(book,0,sizeof(book));
^
|