Search found 1 match

by arif.cse28
Fri Sep 16, 2011 12:36 pm
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 17876

11428 wa.ahy?

some1 tell me the bugs.why it is showing WA? // id 11428 #include <stdio.h> int main() { long int x[50],y[50],n,temp_i,temp_x,temp_1; int i,j,flag; for(i=0; i<50; i++) { x[i]=i*i*i; y[i]=i*i*i; } while(1) { scanf("%ld",&n); flag=0; if(n==0) { break; } i=0; while(x[i]<=n) { i++; } temp_i=i; temp_x=x[...

Go to advanced search