0_0_39712474_19940\Main.java:1: 错误: 需要class, interface或enum
const int defauseCount = 41;
^
0_0_39712474_19940\Main.java:1: 错误: 需要class, interface或enum
const int defauseCount = 41;
^
0_0_39712474_19940\Main.java:1: 错误: 需要class, interface或enum
const int defauseCount = 41;
^
0_0_39712474_19940\Main.java:2: 错误: 需要class, interface或enum
struct Node
^
0_0_39712474_19940\Main.java:5: 错误: 需要class, interface或enum
Node *link;//指针域
^
0_0_39712474_19940\Main.java:7: 错误: 需要class, interface或enum
Node(Node *ptr = nullptr)//创建头结点用
^
0_0_39712474_19940\Main.java:10: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:15: 错误: 需要class, interface或enum
link = ptr;
^
0_0_39712474_19940\Main.java:16: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:20: 错误: 需要class, interface或enum
void createList(Node *first,int count)
^
0_0_39712474_19940\Main.java:24: 错误: 需要class, interface或enum
for(int i = 1;i <= count; i++)
^
0_0_39712474_19940\Main.java:24: 错误: 需要class, interface或enum
for(int i = 1;i <= count; i++)
^
0_0_39712474_19940\Main.java:24: 错误: 需要class, interface或enum
for(int i = 1;i <= count; i++)
^
0_0_39712474_19940\Main.java:27: 错误: 需要class, interface或enum
p->link = node;
^
0_0_39712474_19940\Main.java:28: 错误: 需要class, interface或enum
p = node;
^
0_0_39712474_19940\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:36: 错误: 需要class, interface或enum
while( p != first)
^
0_0_39712474_19940\Main.java:39: 错误: 需要class, interface或enum
p = p->link;
^
0_0_39712474_19940\Main.java:40: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:47: 错误: 需要class, interface或enum
Node *p = first->link;
^
0_0_39712474_19940\Main.java:48: 错误: 需要class, interface或enum
int count = 1;
^
0_0_39712474_19940\Main.java:49: 错误: 需要class, interface或enum
Node *curr = nullptr;
^
0_0_39712474_19940\Main.java:51: 错误: 需要class, interface或enum
while(length != 1)
^
0_0_39712474_19940\Main.java:58: 错误: 需要class, interface或enum
if(p->link == first)//遇到头结点跳过
^
0_0_39712474_19940\Main.java:61: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:65: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:68: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:75: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:79: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:82: 错误: 需要class, interface或enum
delete p;//删除自身
^
0_0_39712474_19940\Main.java:83: 错误: 需要class, interface或enum
--length;
^
0_0_39712474_19940\Main.java:85: 错误: 需要class, interface或enum
p = curr->link;//p向前移
^
0_0_39712474_19940\Main.java:86: 错误: 需要class, interface或enum
count = 1;
^
0_0_39712474_19940\Main.java:87: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:91: 错误: 需要class, interface或enum
}
^
0_0_39712474_19940\Main.java:96: 错误: 需要class, interface或enum
createList(first,defauseCount);//创建好循环链表
^
0_0_39712474_19940\Main.java:97: 错误: 需要class, interface或enum
printList(first);
^
0_0_39712474_19940\Main.java:99: 错误: 需要class, interface或enum
cout << "\n报到几的人退出?";
^
0_0_39712474_19940\Main.java:100: 错误: 需要class, interface或enum
int num;
^
0_0_39712474_19940\Main.java:101: 错误: 需要class, interface或enum
cin >> num;
^
0_0_39712474_19940\Main.java:103: 错误: 需要class, interface或enum
josephus(first,num);
^
0_0_39712474_19940\Main.java:104: 错误: 需要class, interface或enum
system("pause");
^
0_0_39712474_19940\Main.java:105: 错误: 需要class, interface或enum
return 0;
^
0_0_39712474_19940\Main.java:106: 错误: 需要class, interface或enum
}
^
45 个错误
|