#include<stdio.h> #include<math.h> int main(){ int n; while(scanf("%d",&n)!=EOF){ if(n==0) printf("0\n"); else{ printf("%lld\n",s); } } } /* Main.c: In function 'main': Main.c:10:19: error: 's' undeclared (first use in this function) printf("%lld\n",s); ^ Main.c:10:19: note: each undeclared identifier is reported only once for each function it appears in */ |
Double click to view unformatted code.