#include <stdio.h> int main() { double points[NPOINTS]; int k; points[0] = 0.1; for(k=1; k < NPOINTS; k++) { points[k] = 0.1 + points[k-1]; } return 0; }
Standard input is empty
prog.c: In function ‘main’: prog.c:4:19: error: ‘NPOINTS’ undeclared (first use in this function) double points[NPOINTS]; ^~~~~~~ prog.c:4:19: note: each undeclared identifier is reported only once for each function it appears in prog.c:4:12: warning: unused variable ‘points’ [-Wunused-variable] double points[NPOINTS]; ^~~~~~
Standard output is empty