SHOW:
|
|
- or go back to the newest paste.
1 | travis@gigabox ~/Projects/cs133u/papodaca/assignments/Lab11 $ colorgcc -Wall -std=c99 p.c -o p-compile | |
2 | p.c:23:40: warning: ‘struct wordList’ declared inside parameter list [enabled by default] | |
3 | p.c:23:40: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] | |
4 | p.c:24:29: warning: ‘struct wordList’ declared inside parameter list [enabled by default] | |
5 | p.c: In function ‘main’: | |
6 | p.c:52:34: error: invalid type argument of unary ‘*’ (have ‘int’) | |
7 | p.c:52:2: error: type of formal parameter 2 is incomplete | |
8 | p.c:53:2: warning: implicit declaration of function ‘print_wordStruct’ [-Wimplicit-function-declaration] | |
9 | p.c:53:28: error: invalid type argument of unary ‘*’ (have ‘int’) | |
10 | p.c: At top level: | |
11 | p.c:82:5: error: conflicting types for ‘buildStruct’ | |
12 | p.c:23:5: note: previous declaration of ‘buildStruct’ was here | |
13 | p.c: In function ‘buildStruct’: | |
14 | p.c:82:41: error: parameter name omitted | |
15 | p.c:107:15: error: ‘wordsCounted’ undeclared (first use in this function) | |
16 | p.c:107:15: note: each undeclared identifier is reported only once for each function it appears in | |
17 | p.c: At top level: | |
18 | - | p.c:129:54: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token |
18 | + | p.c:129:54: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token |
19 | ||
20 | ||
21 | ||
22 | ||
23 | the one ive been working on | |
24 | ||
25 | ||
26 | ||
27 | travis@gigabox ~/Projects/cs133u/papodaca/assignments/Lab11/testcompiles $ colorgcc -Wall -std=c99 c.c -o c-compile | |
28 | c.c: In function ‘main’: | |
29 | c.c:71:2: warning: implicit declaration of function ‘print_wordStruct’ [-Wimplicit-function-declaration] | |
30 | c.c: In function ‘openFile’: | |
31 | c.c:103:4: error: ‘inputFile’ undeclared (first use in this function) | |
32 | c.c:103:4: note: each undeclared identifier is reported only once for each function it appears in | |
33 | c.c:111:5: warning: return makes pointer from integer without a cast [enabled by default] | |
34 | c.c:93:8: warning: unused variable ‘fileName’ [-Wunused-variable] | |
35 | c.c:89:8: warning: unused variable ‘inputfile’ [-Wunused-variable] | |
36 | c.c: At top level: | |
37 | c.c:138:1: error: expected identifier or ‘(’ before ‘{’ token | |
38 | c.c:219:51: error: expected declaration specifiers or ‘...’ before ‘&’ token | |
39 | c.c: In function ‘openFile’: | |
40 | c.c:120:1: warning: control reaches end of non-void function [-Wreturn-type] |