Code:
-*- mode: compilation; default-directory: "~/test3/" -*-
Compilation started at Tue Apr 29 01:40:35
make -k
icc -o test3.o -c -g -Wall test3.c
test3.c(11): warning #991: //-style comments are nonstandard
//#include <koolplot.h>
^
test3.c(17): warning #592: variable "p" is used before its value is set
int j, k, sl, yi, p, xy=5, n=p+xy,xp, xl, xu, sn; /* The number of entries read from file */
^
test3.c(18): warning #1419: external declaration in primary source file
int readData(double arrayx[], double arrayy[], int j);
^
test3.c(21): warning #1419: external declaration in primary source file
double getsumxy(double ssumx1, double sMx, double ssumy1, double sMy, int sn);
^
test3.c(22): warning #1419: external declaration in primary source file
double getsumx2(double arrayx[], double sMx, double sMy, int sn);
^
test3.c(23): warning #1419: external declaration in primary source file
double getb(double sMy, double sMx, double sa);
^
test3.c(24): warning #1419: external declaration in primary source file
double getcor(double ssumxy, double ssumnxy, double ssumy2, double ssumx2, double ssumnx2,
^
test3.c(26): warning #1419: external declaration in primary source file
void printResults(double sa, double sb, double scor);
^
test3.c(27): warning #1419: external declaration in primary source file
void graph(double arrayx[], double arrayy[]);
^
test3.c(31): warning #592: variable "j" is used before its value is set
xy = readData(arrayx, arrayy, j);
^
test3.c(54): warning #592: variable "ssumx1" is used before its value is set
sumxy = getsumxy(ssumx1, sMx, ssumy1, sMy, sn);
^
test3.c(54): warning #592: variable "sMx" is used before its value is set
sumxy = getsumxy(ssumx1, sMx, ssumy1, sMy, sn);
^
test3.c(54): warning #592: variable "ssumy1" is used before its value is set
sumxy = getsumxy(ssumx1, sMx, ssumy1, sMy, sn);
^
test3.c(54): warning #592: variable "sMy" is used before its value is set
sumxy = getsumxy(ssumx1, sMx, ssumy1, sMy, sn);
^
test3.c(54): warning #592: variable "sn" is used before its value is set
sumxy = getsumxy(ssumx1, sMx, ssumy1, sMy, sn);
^
test3.c(60): warning #592: variable "sa" is used before its value is set
b = getb(sMy, sMx, sa);
^
test3.c(63): warning #592: variable "ssumxy" is used before its value is set
cor = getcor(ssumxy, ssumnxy, ssumy2, ssumx2, ssumnx2, ssumny2, ssumnxy2, sn);
^
test3.c(63): warning #592: variable "ssumnxy" is used before its value is set
cor = getcor(ssumxy, ssumnxy, ssumy2, ssumx2, ssumnx2, ssumny2, ssumnxy2, sn);
^
test3.c(63): warning #592: variable "ssumy2" is used before its value is set
cor = getcor(ssumxy, ssumnxy, ssumy2, ssumx2, ssumnx2, ssumny2, ssumnxy2, sn);
^
test3.c(63): warning #592: variable "ssumx2" is used before its value is set
cor = getcor(ssumxy, ssumnxy, ssumy2, ssumx2, ssumnx2, ssumny2, ssumnxy2, sn);
^
test3.c(63): warning #592: variable "ssumnx2" is used before its value is set
cor = getcor(ssumxy, ssumnxy, ssumy2, ssumx2, ssumnx2, ssumny2, ssumnxy2, sn);
^
test3.c(63): warning #592: variable "ssumny2" is used before its value is set
cor = getcor(ssumxy, ssumnxy, ssumy2, ssumx2, ssumnx2, ssumny2, ssumnxy2, sn);
^
test3.c(63): warning #592: variable "ssumnxy2" is used before its value is set
cor = getcor(ssumxy, ssumnxy, ssumy2, ssumx2, ssumnx2, ssumny2, ssumnxy2, sn);
^
test3.c(66): warning #592: variable "sb" is used before its value is set
printResults(sa, sb, scor);
^
test3.c(66): warning #592: variable "scor" is used before its value is set
printResults(sa, sb, scor);
^
test3.c(17): warning #177: variable "k" was declared but never referenced
int j, k, sl, yi, p, xy=5, n=p+xy,xp, xl, xu, sn; /* The number of entries read from file */
^
test3.c(17): warning #177: variable "n" was declared but never referenced
int j, k, sl, yi, p, xy=5, n=p+xy,xp, xl, xu, sn; /* The number of entries read from file */
^
test3.c(19): warning #593: variable "a" was set but never used
double a, b, cor, arrayx[50], arrayy[50], ssumy2, ssumny2, ssumnxy2, sumxy, sumx2;
^
test3.c(19): warning #593: variable "b" was set but never used
double a, b, cor, arrayx[50], arrayy[50], ssumy2, ssumny2, ssumnxy2, sumxy, sumx2;
^
test3.c(19): warning #593: variable "cor" was set but never used
double a, b, cor, arrayx[50], arrayy[50], ssumy2, ssumny2, ssumnxy2, sumxy, sumx2;
^
test3.c(82): warning #1418: external function definition with no prior declaration
int readData(double arrayx[], double arrayy[], int j)
^
test3.c(87): warning #181: argument is incompatible with corresponding format string conversion
scanf("%s", &rdata);
^
test3.c(101): warning #269: invalid format string conversion
while (fscanf(data, "%.2lf %.2lf", &arrayx[j], &arrayy[j]) == 2)
^
test3.c(108): warning #1418: external function definition with no prior declaration
double getsumxy(double sumx1, double Mx, double sumy1, double My, int n)
^
test3.c(110): warning #177: variable "a" was declared but never referenced
double a, arrayx[50], arrayy[50], sumxy;
^
test3.c(142): warning #1418: external function definition with no prior declaration
double getsumx2(double arrayx[], double Mx, double My, int n)
^
test3.c(142): warning #869: parameter "My" was never referenced
double getsumx2(double arrayx[], double Mx, double My, int n)
^
test3.c(156): warning #1418: external function definition with no prior declaration
double getb(double My, double Mx, double a)
^
test3.c(167): warning #1418: external function definition with no prior declaration
double getcor(double sumxy, double sumnxy, double sumy2, double sumx2, double sumnx2,
^
test3.c(173): warning #592: variable "xy" is used before its value is set
n = xy+p;
^
test3.c(173): warning #592: variable "p" is used before its value is set
n = xy+p;
^
test3.c(170): warning #177: variable "sumx1" was declared but never referenced
double sumx1, Mx, sumy1, My, cor, arrayy[50];
^
test3.c(170): warning #177: variable "Mx" was declared but never referenced
double sumx1, Mx, sumy1, My, cor, arrayy[50];
^
test3.c(170): warning #177: variable "sumy1" was declared but never referenced
double sumx1, Mx, sumy1, My, cor, arrayy[50];
^
test3.c(224): warning #1418: external function definition with no prior declaration
scanf("%d", &xu);
^
test3.c(243): warning #1418: external function definition with no prior declaration
b = getb(sMy, sMx, sa);
^
test3.c(245): error: identifier "plotdata" is undefined
plotdata x(xl, xu);
^
test3.c(245): warning #92: identifier-list parameters may only be used in a function definition
plotdata x(xl, xu);
^
test3.c(245): warning #310: old-style parameter list (anachronism)
plotdata x(xl, xu);
^
test3.c(245): warning #1419: external declaration in primary source file
plotdata x(xl, xu);
^
test3.c(246): error: identifier "plotdata" is undefined
plotdata y = sl*x + yi;
^
test3.c(246): error: identifier "sl" is undefined
plotdata y = sl*x + yi;
^
test3.c(246): error: expression must have arithmetic type
plotdata y = sl*x + yi;
^
test3.c(246): error: identifier "yi" is undefined
plotdata y = sl*x + yi;
^
test3.c(247): error: identifier "j" is undefined
for (j=0; j<xy; j++)
^
test3.c(247): error: identifier "xy" is undefined
for (j=0; j<xy; j++)
^
test3.c(249): warning #266: function "addMark" declared implicitly
addMark(x, y, arrayx[j], arrayy[j]);
^
test3.c(249): error: identifier "arrayy" is undefined
addMark(x, y, arrayx[j], arrayy[j]);
^
test3.c(249): remark #981: operands are evaluated in unspecified order
addMark(x, y, arrayx[j], arrayy[j]);
^
test3.c(251): warning #266: function "plot" declared implicitly
plot(x, y, BLACK, "SELF MONITORING: ok line: y = 2x + 3 Correlation:1 ->ok");
^
test3.c(251): error: identifier "BLACK" is undefined
plot(x, y, BLACK, "SELF MONITORING: ok line: y = 2x + 3 Correlation:1 ->ok");
^
test3.c(251): remark #981: operands are evaluated in unspecified order
plot(x, y, BLACK, "SELF MONITORING: ok line: y = 2x + 3 Correlation:1 ->ok");
^
test3.c(243): warning #869: parameter "array" was never referenced
b = getb(sMy, sMx, sa);
^
compilation aborted for test3.c (code 2)
make: *** [test3.o] Error 2
make: Target `all' not remade because of errors.
Compilation exited abnormally with code 2 at Tue Apr 29 01:40:35