Search found 2 matches

by Shiba
Mon Jan 17, 2011 6:34 pm
Forum: Volume 112 (11200-11299)
Topic: 11233 - Deli Deli
Replies: 12
Views: 7597

11233 Deli Deli - Runtime Error. please help

i've got AC with the same alogorithm in C++. But in case of Java there is always RE :( . can anyone plz help me. where is my fault??

import java.util.Scanner;

class Main {
static boolean vowel (char ch) {
if(ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u') return true;
return ...
by Shiba
Thu Sep 09, 2010 7:51 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 49496

492 - Pig Latin

Anyone plz help!! I've got RTE :(. Is there any problem with gets() or the array size? How can I take input using fgets() ??


#include<stdio.h>
#include<string.h>
#include<ctype.h>

int main () {

char line[10000000], temp;
long i, start, k, len;
bool flag;

while(gets(line)) {

len ...

Go to advanced search