prog.c: In function ‘opoc’:
prog.c:14:13: error: ‘j’ undeclared (first use in this function)
s = s+pow(2,j);
^
prog.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
prog.c:9:5: warning: variable ‘k’ set but not used [-Wunused-but-set-variable]
int k, s=0, i;
^
prog.c: In function ‘main’:
prog.c:23:1: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
gets(z);
^~~~