回答編集履歴

2

修正

2021/05/11 11:47

投稿

episteme
episteme

スコア16612

test CHANGED
@@ -16,7 +16,9 @@
16
16
 
17
17
  typedef struct kozotai Queue;
18
18
 
19
- return (Queue*)malloc(sizeof(Queue));
19
+ Queue* que = (Queue*)malloc(sizeof(Queue));
20
+
21
+ return que;
20
22
 
21
23
  }
22
24
 

1

修正

2021/05/11 11:47

投稿

episteme
episteme

スコア16612

test CHANGED
@@ -14,7 +14,9 @@
14
14
 
15
15
  struct kozotai* constructor() {
16
16
 
17
+ typedef struct kozotai Queue;
18
+
17
- return (struct kozotai*)malloc(sizeof(struct kozotai));
19
+ return (Queue*)malloc(sizeof(Queue));
18
20
 
19
21
  }
20
22