質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
int main(void) {
|
46
46
|
|
47
|
-
int ;
|
47
|
+
int i;
|
48
48
|
|
49
49
|
int ary[8];
|
50
50
|
|
@@ -92,6 +92,378 @@
|
|
92
92
|
|
93
93
|
|
94
94
|
|
95
|
+
|
96
|
+
|
97
|
+
エラーメッセージ一部
|
98
|
+
|
99
|
+
```
|
100
|
+
|
101
|
+
10.c:1:1: error: stray '\377' in program
|
102
|
+
|
103
|
+
1 | # i n c l u d e < s t d i o . h >
|
104
|
+
|
105
|
+
| ^
|
106
|
+
|
107
|
+
10.c:1:2: error: stray '\376' in program
|
108
|
+
|
109
|
+
1 | # i n c l u d e < s t d i o . h >
|
110
|
+
|
111
|
+
| ^
|
112
|
+
|
113
|
+
10.c:1:3: error: stray '#' in program
|
114
|
+
|
115
|
+
1 | # i n c l u d e < s t d i o . h >
|
116
|
+
|
117
|
+
| ^
|
118
|
+
|
119
|
+
10.c:1:4: warning: null character(s) ignored
|
120
|
+
|
121
|
+
1 | # i n c l u d e < s t d i o . h >
|
122
|
+
|
123
|
+
| ^
|
124
|
+
|
125
|
+
10.c:1:6: warning: null character(s) ignored
|
126
|
+
|
127
|
+
1 | # i n c l u d e < s t d i o . h >
|
128
|
+
|
129
|
+
| ^
|
130
|
+
|
131
|
+
10.c:1:5: error: unknown type name 'i'
|
132
|
+
|
133
|
+
1 | # i n c l u d e < s t d i o . h >
|
134
|
+
|
135
|
+
| ^
|
136
|
+
|
137
|
+
10.c:1:8: warning: null character(s) ignored
|
138
|
+
|
139
|
+
1 | # i n c l u d e < s t d i o . h >
|
140
|
+
|
141
|
+
| ^
|
142
|
+
|
143
|
+
10.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
|
144
|
+
|
145
|
+
1 | # i n c l u d e < s t d i o . h >
|
146
|
+
|
147
|
+
| ^
|
148
|
+
|
149
|
+
10.c:1:10: warning: null character(s) ignored
|
150
|
+
|
151
|
+
1 | # i n c l u d e < s t d i o . h >
|
152
|
+
|
153
|
+
| ^
|
154
|
+
|
155
|
+
10.c:1:9: error: unknown type name 'c'
|
156
|
+
|
157
|
+
1 | # i n c l u d e < s t d i o . h >
|
158
|
+
|
159
|
+
| ^
|
160
|
+
|
161
|
+
10.c:1:12: warning: null character(s) ignored
|
162
|
+
|
163
|
+
1 | # i n c l u d e < s t d i o . h >
|
164
|
+
|
165
|
+
| ^
|
166
|
+
|
167
|
+
10.c:1:14: warning: null character(s) ignored
|
168
|
+
|
169
|
+
1 | # i n c l u d e < s t d i o . h >
|
170
|
+
|
171
|
+
| ^
|
172
|
+
|
173
|
+
10.c:1:16: warning: null character(s) ignored
|
174
|
+
|
175
|
+
1 | # i n c l u d e < s t d i o . h >
|
176
|
+
|
177
|
+
| ^
|
178
|
+
|
179
|
+
10.c:1:18: warning: null character(s) ignored
|
180
|
+
|
181
|
+
1 | # i n c l u d e < s t d i o . h >
|
182
|
+
|
183
|
+
| ^
|
184
|
+
|
185
|
+
10.c:1:22: warning: null character(s) ignored
|
186
|
+
|
187
|
+
1 | # i n c l u d e < s t d i o . h >
|
188
|
+
|
189
|
+
| ^
|
190
|
+
|
191
|
+
10.c:1:24: warning: null character(s) ignored
|
192
|
+
|
193
|
+
1 | # i n c l u d e < s t d i o . h >
|
194
|
+
|
195
|
+
| ^
|
196
|
+
|
197
|
+
10.c:1:26: warning: null character(s) ignored
|
198
|
+
|
199
|
+
1 | # i n c l u d e < s t d i o . h >
|
200
|
+
|
201
|
+
| ^
|
202
|
+
|
203
|
+
10.c:1:28: warning: null character(s) ignored
|
204
|
+
|
205
|
+
1 | # i n c l u d e < s t d i o . h >
|
206
|
+
|
207
|
+
| ^
|
208
|
+
|
209
|
+
10.c:1:30: warning: null character(s) ignored
|
210
|
+
|
211
|
+
1 | # i n c l u d e < s t d i o . h >
|
212
|
+
|
213
|
+
| ^
|
214
|
+
|
215
|
+
10.c:1:32: warning: null character(s) ignored
|
216
|
+
|
217
|
+
1 | # i n c l u d e < s t d i o . h >
|
218
|
+
|
219
|
+
| ^
|
220
|
+
|
221
|
+
10.c:1:34: warning: null character(s) ignored
|
222
|
+
|
223
|
+
1 | # i n c l u d e < s t d i o . h >
|
224
|
+
|
225
|
+
| ^
|
226
|
+
|
227
|
+
10.c:1:36: warning: null character(s) ignored
|
228
|
+
|
229
|
+
1 | # i n c l u d e < s t d i o . h >
|
230
|
+
|
231
|
+
| ^
|
232
|
+
|
233
|
+
10.c:1:38: warning: null character(s) ignored
|
234
|
+
|
235
|
+
1 | # i n c l u d e < s t d i o . h >
|
236
|
+
|
237
|
+
| ^
|
238
|
+
|
239
|
+
10.c:2:1: warning: null character(s) ignored
|
240
|
+
|
241
|
+
2 |
|
242
|
+
|
243
|
+
| ^
|
244
|
+
|
245
|
+
10.c:3:1: warning: null character(s) ignored
|
246
|
+
|
247
|
+
3 | # d e f i n e s w a p ( t y p e , x , y ) d o { t y p e t = x ; x
|
248
|
+
|
249
|
+
= y ; y = t ; } w h i l e ( 0 )
|
250
|
+
|
251
|
+
| ^
|
252
|
+
|
253
|
+
10.c:4:1: warning: null character(s) ignored
|
254
|
+
|
255
|
+
4 |
|
256
|
+
|
257
|
+
| ^
|
258
|
+
|
259
|
+
10.c:5:1: warning: null character(s) ignored
|
260
|
+
|
261
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
262
|
+
|
263
|
+
| ^
|
264
|
+
|
265
|
+
10.c:5:3: warning: null character(s) ignored
|
266
|
+
|
267
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
268
|
+
|
269
|
+
| ^
|
270
|
+
|
271
|
+
10.c:5:4: error: invalid preprocessing directive #d
|
272
|
+
|
273
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
274
|
+
|
275
|
+
| ^
|
276
|
+
|
277
|
+
10.c:5:5: warning: null character(s) ignored
|
278
|
+
|
279
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
280
|
+
|
281
|
+
| ^
|
282
|
+
|
283
|
+
10.c:5:7: warning: null character(s) ignored
|
284
|
+
|
285
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
286
|
+
|
287
|
+
| ^
|
288
|
+
|
289
|
+
10.c:5:9: warning: null character(s) ignored
|
290
|
+
|
291
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
292
|
+
|
293
|
+
| ^
|
294
|
+
|
295
|
+
10.c:5:11: warning: null character(s) ignored
|
296
|
+
|
297
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
298
|
+
|
299
|
+
| ^
|
300
|
+
|
301
|
+
10.c:5:13: warning: null character(s) ignored
|
302
|
+
|
303
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
304
|
+
|
305
|
+
| ^
|
306
|
+
|
307
|
+
10.c:5:15: warning: null character(s) ignored
|
308
|
+
|
309
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
310
|
+
|
311
|
+
| ^
|
312
|
+
|
313
|
+
10.c:5:19: warning: null character(s) ignored
|
314
|
+
|
315
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
316
|
+
|
317
|
+
| ^
|
318
|
+
|
319
|
+
10.c:5:21: warning: null character(s) ignored
|
320
|
+
|
321
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
322
|
+
|
323
|
+
| ^
|
324
|
+
|
325
|
+
10.c:5:23: warning: null character(s) ignored
|
326
|
+
|
327
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
328
|
+
|
329
|
+
| ^
|
330
|
+
|
331
|
+
10.c:5:25: warning: null character(s) ignored
|
332
|
+
|
333
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
334
|
+
|
335
|
+
| ^
|
336
|
+
|
337
|
+
10.c:5:27: warning: null character(s) ignored
|
338
|
+
|
339
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
340
|
+
|
341
|
+
| ^
|
342
|
+
|
343
|
+
10.c:5:29: warning: null character(s) ignored
|
344
|
+
|
345
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
346
|
+
|
347
|
+
| ^
|
348
|
+
|
349
|
+
10.c:5:31: warning: null character(s) ignored
|
350
|
+
|
351
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
352
|
+
|
353
|
+
| ^
|
354
|
+
|
355
|
+
10.c:5:33: warning: null character(s) ignored
|
356
|
+
|
357
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
358
|
+
|
359
|
+
| ^
|
360
|
+
|
361
|
+
10.c:5:35: warning: null character(s) ignored
|
362
|
+
|
363
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
364
|
+
|
365
|
+
| ^
|
366
|
+
|
367
|
+
10.c:5:37: warning: null character(s) ignored
|
368
|
+
|
369
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
370
|
+
|
371
|
+
| ^
|
372
|
+
|
373
|
+
10.c:5:41: warning: null character(s) ignored
|
374
|
+
|
375
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
376
|
+
|
377
|
+
| ^
|
378
|
+
|
379
|
+
10.c:5:43: warning: null character(s) ignored
|
380
|
+
|
381
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
382
|
+
|
383
|
+
| ^
|
384
|
+
|
385
|
+
10.c:5:47: warning: null character(s) ignored
|
386
|
+
|
387
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
388
|
+
|
389
|
+
| ^
|
390
|
+
|
391
|
+
10.c:5:49: warning: null character(s) ignored
|
392
|
+
|
393
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
394
|
+
|
395
|
+
| ^
|
396
|
+
|
397
|
+
10.c:5:57: warning: null character(s) ignored
|
398
|
+
|
399
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
400
|
+
|
401
|
+
| ^
|
402
|
+
|
403
|
+
10.c:5:59: warning: null character(s) ignored
|
404
|
+
|
405
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
406
|
+
|
407
|
+
| ^
|
408
|
+
|
409
|
+
10.c:5:63: warning: null character(s) ignored
|
410
|
+
|
411
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
412
|
+
|
413
|
+
| ^
|
414
|
+
|
415
|
+
10.c:5:65: warning: null character(s) ignored
|
416
|
+
|
417
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
418
|
+
|
419
|
+
| ^
|
420
|
+
|
421
|
+
10.c:5:67: warning: null character(s) ignored
|
422
|
+
|
423
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
424
|
+
|
425
|
+
| ^
|
426
|
+
|
427
|
+
10.c:5:69: warning: null character(s) ignored
|
428
|
+
|
429
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
430
|
+
|
431
|
+
| ^
|
432
|
+
|
433
|
+
10.c:5:71: warning: null character(s) ignored
|
434
|
+
|
435
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
436
|
+
|
437
|
+
| ^
|
438
|
+
|
439
|
+
10.c:5:75: warning: null character(s) ignored
|
440
|
+
|
441
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
442
|
+
|
443
|
+
| ^
|
444
|
+
|
445
|
+
10.c:5:79: warning: null character(s) ignored
|
446
|
+
|
447
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
448
|
+
|
449
|
+
| ^
|
450
|
+
|
451
|
+
10.c:5:83: warning: null character(s) ignored
|
452
|
+
|
453
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
454
|
+
|
455
|
+
| ^
|
456
|
+
|
457
|
+
10.c:5:85: warning: null character(s) ignored
|
458
|
+
|
459
|
+
5 | v o i d b u b b l e ( i n t a r y [ ] , i n t e l e m ) {
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
```
|
464
|
+
|
465
|
+
|
466
|
+
|
95
467
|
環境
|
96
468
|
|
97
469
|
windows 10
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -82,6 +82,8 @@
|
|
82
82
|
|
83
83
|
上のコードがgccコンパイル通らないのですが原因がわかりません。
|
84
84
|
|
85
|
+
コードの内容はバブルソートのアルゴリズムです。
|
86
|
+
|
85
87
|
エラーメッセージが無限ループのように大量に出力されてしまいます。
|
86
88
|
|
87
89
|
|