Search found 3 matches

by wz0o0zw
Tue Mar 20, 2012 4:55 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 33065

WA 488 help plz

i got WA,and my output is the same as the answer, i submit many times, but it always WA!! this is my code: #include <iostream> #define MAXAMP 9 using namespace std; int main() { int n,Amp,Fre,elem,k,l=0,m=0; while(cin>>n) while(n--) { cin>>Amp>>Fre; if(Amp>MAXAMP||Amp<=0) break; //if(l=0; if(n!=0) m...
by wz0o0zw
Tue Mar 20, 2012 4:44 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 21694

Re: Please Help!!!! 490 Runtime Error

Read the input from stdin, not a file. #include <iostream> #include <stdio.h> #define R 100 #define L 100 using namespace std; int main() { char rot[L][R]; int n=0; for(int i=0;i<100;i++) for(int j=0;j<100;j++) rot [j]='\0'; while(gets(rot[n])) if(n<100) n++; for(int i=0;i<100;i++) { for(int j=0;j<...
by wz0o0zw
Mon Mar 19, 2012 5:46 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 21694

Please Help!!!! 490 Runtime Error

plz help, i don't know why i always get Runtime Error!plz help me,thanks. and this is my code: #include <iostream> #include <stdio.h> #define R 100 #define L 100 using namespace std; int main() { freopen("490.txt","r",stdin); char rot[L][R]; int n=0; for(int i=0;i<100;i++) for(int j=0;j<100;j++) rot...

Go to advanced search