fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. double points[NPOINTS];
  5. int k;
  6.  
  7. points[0] = 0.1;
  8. for(k=1; k < NPOINTS; k++) {
  9. points[k] = 0.1 + points[k-1];
  10. }
  11. return 0;
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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];
            ^~~~~~
stdout
Standard output is empty