Compiler errors

This is a discussion on Compiler errors within the C Programming forums, part of the General Programming Boards category; [ #include <stdio.h> int main () /* Declare and initialize variables. */ int number1 = 4, number2 = 7, sum; ...

  1. #1
    Registered User ralphwiggam's Avatar
    Join Date
    Sep 2006
    Posts
    32

    Compiler errors

    [
    #include <stdio.h>
    int main ()
    /* Declare and initialize variables. */
    int number1 = 4, number2 = 7, sum;
    /* Calculate sum. */
    sum = numberl + number2;
    /* Print the sum. */
    printf("The sum is */.d \n", sum);
    /* Exit program. */
    system ("pause");
    return 0;
    ]

    We HAVE to work within Bloodshed 4.9.9.2.

    Errors per compiler:
    In function 'main'
    line 9 parameter 'number1' is initilaized
    line 9 parameter 'number2' is initialized
    line 11 syntax error b4 sum

    Please help me

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,340
    Can you post your actual program, with [code][/code] tags.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 10:50 AM
  3. bloodshed compiler errors
    By nerore in forum C++ Programming
    Replies: 5
    Last Post: 04-17-2004, 02:37 PM
  4. How to resolve linking errors?
    By m712 in forum C++ Programming
    Replies: 3
    Last Post: 11-03-2002, 09:17 PM
  5. Compiler errors
    By BellosX in forum C Programming
    Replies: 2
    Last Post: 09-21-2001, 03:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21