Hi, I'm using the c_via_python question type.
Here's the code:
#include <stdio.h>
#include <math.h>
int main()
{ int cont, nc, ng;
printf(\"No. de casillero: \");
scanf(\"%d\", &nc);
for(cont=1; cont <=nc; cont++)
{
ng = pow(2, cont-1);
printf(\"%d \", ng);
}
}
and, here's the error: ***Error*** /tmp/ccmzaEe7.o: In function `main': prog.c:(.text+0x68):
undefined reference to `pow' collect2: error: ld returned 1 exit status ** Compilation failed. Testing aborted **
Template's parameters:{"linkargs":["-lm"], "compileargs":["-std=c89"] }