fork download
  1. #include <stdio.h>
  2. //x y n pueden ser sustituidos por algun valor
  3. #define x x
  4. #define n n
  5.  
  6. int a[n];
  7. int xp;
  8. int p;
  9.  
  10. int main(void){
  11. int i;
  12. p=a[0];
  13. for(i=0; x<=n; i++){
  14. xp = x * xp;
  15. p = p + a[i] * xp;
  16. }
  17. printf("%d",p);
  18.  
  19. return 0;
  20. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:6: error: ‘n’ undeclared here (not in a function)
prog.c: In function ‘main’:
prog.c:13: error: ‘x’ undeclared (first use in this function)
prog.c:13: error: (Each undeclared identifier is reported only once
prog.c:13: error: for each function it appears in.)
stdout
Standard output is empty