Thread: HELP please!!!
View Single Post
Old Nov 20th, 2005, 12:11 PM   #5
linuxpimp20
Hobbyist Programmer
 
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4 linuxpimp20 is on a distinguished road
Quote:
Originally Posted by bl00dninja
try this:

give the specific errors you're getting...

use these guys here: "/*" and "*/" a little more often.
these are the errors i get when trying to compile it. As of right now im not ambitious enough to try to solve any of them. lol.

 gcc -ansi -O2 -Wall -pedantic -o sweater sweater.c sweater.c:16: warning: return type defaults to `int'
sweater.c: In function `main':
sweater.c:24: warning: int format, pointer arg (arg 2)
sweater.c:32: warning: int format, pointer arg (arg 2)
sweater.c:35: warning: int format, pointer arg (arg 2)
sweater.c:38: warning: int format, pointer arg (arg 2)
sweater.c:41: warning: int format, pointer arg (arg 2)
sweater.c:44: warning: int format, pointer arg (arg 2)
sweater.c:62: error: subscripted value is neither array nor pointer
sweater.c:66: error: subscripted value is neither array nor pointer
sweater.c:70: error: subscripted value is neither array nor pointer
sweater.c:78: warning: int format, pointer arg (arg 2)
sweater.c:80: error: invalid operands to binary *
sweater.c:81: error: invalid operands to binary *
sweater.c:82: error: invalid operands to binary *
sweater.c:83: error: invalid operands to binary *
sweater.c:86: warning: int format, pointer arg (arg 3)
sweater.c:87: warning: int format, pointer arg (arg 3)
sweater.c:88: warning: int format, pointer arg (arg 3)
sweater.c:89: warning: int format, pointer arg (arg 3)
sweater.c:91: error: syntax error before ';' token
sweater.c:92: error: subscripted value is neither array nor pointer
sweater.c:103: warning: passing arg 8 of `print_report' makes pointer from integer without a cast
sweater.c: In function `validate_id':
sweater.c:119: warning: comparison between pointer and integer
sweater.c:119: warning: comparison between pointer and integer
sweater.c:120: warning: int format, pointer arg (arg 2)
sweater.c:121: warning: return makes integer from pointer without a cast
sweater.c:125: warning: comparison between pointer and integer
sweater.c:130: warning: comparison between pointer and integer
sweater.c:130: warning: comparison between pointer and integer
sweater.c: At top level:
sweater.c:136: error: syntax error before numeric constant
sweater.c: In function `calculate_order':
sweater.c:137: error: number of arguments doesn't match prototype
sweater.c:12: error: prototype declaration
sweater.c:138: error: syntax error before '{' token
sweater.c: At top level:
sweater.c:138: warning: ISO C does not allow extra `;' outside of a function
sweater.c:139: warning: type defaults to `int' in declaration of `total'
sweater.c:139: warning: ISO C90 forbids variable-size array `total'
sweater.c:139: error: variable-size type declared outside of any function
sweater.c:139: error: variable-sized object may not be initialized
sweater.c:139: error: conflicting types for 'total'
sweater.c:9: error: previous declaration of 'total' was here
sweater.c:139: error: `a' undeclared here (not in a function)
sweater.c:139: error: `b' undeclared here (not in a function)
sweater.c:139: error: `c' undeclared here (not in a function)
sweater.c:139: error: `d' undeclared here (not in a function)
sweater.c:139: error: ISO C forbids data definition with no type or storage class
sweater.c:140: error: syntax error before "return"
sweater.c: In function `print_report':
sweater.c:149: warning: format argument is not a pointer (arg 8)
linuxpimp20 is offline   Reply With Quote