Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
267 | 关清声 | 杀人游戏 | C++ | Compile Error | 0 MS | 0 KB | 340 | 2022-07-24 10:38:17 |
#include<iostream> using namespace std; struct node { int data; node *next; }*head,*rear; int main() { head=new node; head->next=NULL; rear=head; int x; cin>>x; while(x!=0) { node *p=new node; p->data=x; p->next=NULL; rear } return 0; }
Main.cc: In function 'int main()': Main.cc:22:5: error: expected ';' before '}' token } ^ Main.cc:22:5: warning: statement has no effect [-Wunused-value]