質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -178,8 +178,6 @@
|
|
178
178
|
|
179
179
|
deliver data[]= {{0,4.0,7.5,0.0,0.0,0},{1,3.0,4.5,0.0,2.3,0},{2,3.6,4.0,0.0,8.7,0...
|
180
180
|
|
181
|
-
compiler exit status 1
|
182
|
-
|
183
181
|
^
|
184
182
|
|
185
183
|
main.c:56:10: error: passing 'deliver' to parameter of incompatible type 'const char *'
|
@@ -191,3 +189,5 @@
|
|
191
189
|
/usr/include/stdio.h:318:43: note: passing argument to parameter '__format' here
|
192
190
|
|
193
191
|
extern int printf (const char *__restrict __format, ...);
|
192
|
+
|
193
|
+
^
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
移動する順番を求めるプログラムです
|
2
2
|
|
3
3
|
説明はわかりやすく書いています。
|
4
|
+
|
5
|
+
エラー部分の内容の修正と、プログラム自体の考えはあっているのか教えて頂きたいです。
|
4
6
|
|
5
7
|
色々と考えましたが、これ以降わかりません。
|
6
8
|
|
@@ -80,7 +82,7 @@
|
|
80
82
|
|
81
83
|
*ypos=c.y;
|
82
84
|
|
83
|
-
printf("%d\n",c.num
|
85
|
+
printf("%d\n",c.num);
|
84
86
|
|
85
87
|
}
|
86
88
|
|
@@ -134,11 +136,19 @@
|
|
134
136
|
|
135
137
|
エラーはこんな感じです
|
136
138
|
|
137
|
-
main.c:35:20: error: no member named 'number' in 'deliver'
|
138
139
|
|
139
|
-
printf("%d\n",c.number);
|
140
140
|
|
141
|
+
main.c:29:1: warning: control may reach end of non-void function [-Wreturn-type]
|
142
|
+
|
143
|
+
}
|
144
|
+
|
141
|
-
|
145
|
+
^
|
146
|
+
|
147
|
+
main.c:36:1: warning: control reaches end of non-void function [-Wreturn-type]
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
^
|
142
152
|
|
143
153
|
main.c:40:17: error: passing 'int' to parameter of incompatible type 'deliver'
|
144
154
|
|
@@ -168,6 +178,8 @@
|
|
168
178
|
|
169
179
|
deliver data[]= {{0,4.0,7.5,0.0,0.0,0},{1,3.0,4.5,0.0,2.3,0},{2,3.6,4.0,0.0,8.7,0...
|
170
180
|
|
181
|
+
compiler exit status 1
|
182
|
+
|
171
183
|
^
|
172
184
|
|
173
185
|
main.c:56:10: error: passing 'deliver' to parameter of incompatible type 'const char *'
|
@@ -179,5 +191,3 @@
|
|
179
191
|
/usr/include/stdio.h:318:43: note: passing argument to parameter '__format' here
|
180
192
|
|
181
193
|
extern int printf (const char *__restrict __format, ...);
|
182
|
-
|
183
|
-
^
|