Mail Archives: djgpp/1997/06/09/05:18:34
math.c: in funtion 'main':
im teaching myself c++ and when i tried to run this i get the
following errors any help as to what is causing the error and what
needs to change would be apricieated
OČ
match.c:2: warning: return type of 'main' is not 'int'
gcc.exe installation problem, cannot exec 'as': no such file or directory (ENOENT)
this is the source code for the program
#include <stdio.h>
void main () {
int x = 1;
int y = 2;
printf("The sum of x + y is %d", x + y);
}
- Raw text -