質問編集履歴
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,22 +5,6 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
7.c: In function ‘main’:
|
8
|
-
|
9
|
-
7.c:8:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘while’
|
10
|
-
|
11
|
-
8 | while((f = getchar(fp)) != EOF){
|
12
|
-
|
13
|
-
| ^~~~~
|
14
|
-
|
15
|
-
7.c:8:24: error: ‘fp’ undeclared (first use in this function); did you mean ‘f’?
|
16
|
-
|
17
|
-
8 | while((f = getchar(fp)) != EOF){
|
18
|
-
|
19
|
-
| ^~
|
20
|
-
|
21
|
-
| f
|
22
|
-
|
23
|
-
7.c:8:24: note: each undeclared identifier is reported only once for each function it appears in
|
24
8
|
|
25
9
|
7.c:8:16: error: too many arguments to function ‘getchar’
|
26
10
|
|
@@ -44,8 +28,6 @@
|
|
44
28
|
|
45
29
|
|
46
30
|
|
47
|
-
|
48
|
-
|
49
31
|
```c
|
50
32
|
|
51
33
|
|
@@ -60,7 +42,7 @@
|
|
60
42
|
|
61
43
|
int d=0,o=0,nl=0,s=0;
|
62
44
|
|
63
|
-
FILE *fp
|
45
|
+
FILE *fp;
|
64
46
|
|
65
47
|
|
66
48
|
|