#include<stdio.h> int main() { int day,x1,x2; day=N-1; x2=1; scanf("%d",&N); while(day>0) { x1=2*(x2+1); } printf("%d",x1); return 0; } /* Main.c: In function 'main': Main.c:5:7: error: 'N' undeclared (first use in this function) day=N-1; ^ Main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in */ |
Double click to view unformatted code.