Hi dejavu_logic
try to change your char *val1 = (char *)malloc(sizeof(char) * 20), *val2 = (char *)malloc(sizeof(char) * 20);
with this one char val1[25],val2[25];
and don't forget to delete free(val1); free(val2);
and also, put a space between %s%s in the argument of your scanf...
I have ...
Search found 6 matches
- Wed Oct 27, 2010 4:14 pm
- Forum: Volume 3 (300-399)
- Topic: 343 - What Base Is This?
- Replies: 72
- Views: 28309
- Sun Oct 24, 2010 7:59 pm
- Forum: Volume 3 (300-399)
- Topic: 343 - What Base Is This?
- Replies: 72
- Views: 28309
343 Runtime Error Not Even WA (Again even using C++)
So sad that I always got runtime error on this problem
even when I move to use c++ (leaving java)
Even though the code was able to produce exactly the same outputs
with every input in the test cases given in the problem and every possible
input I found in the internet (especially this forum) but the ...
even when I move to use c++ (leaving java)
Even though the code was able to produce exactly the same outputs
with every input in the test cases given in the problem and every possible
input I found in the internet (especially this forum) but the ...
- Fri Oct 22, 2010 4:59 pm
- Forum: Volume 3 (300-399)
- Topic: 347 - Run
- Replies: 20
- Views: 9519
347 Java Runtime Error (Again?!?!)
Previously I posted a topic in this Volume III board about getting java runtime error on problem 343
but I didn't get any reply or solution
Then I moved on to another problem which is problem 347 and I still got runtime error (again) using java
Here is my code
// @JUDGE_ID: 250890 374 Java "Big ...
but I didn't get any reply or solution
Then I moved on to another problem which is problem 347 and I still got runtime error (again) using java
Here is my code
// @JUDGE_ID: 250890 374 Java "Big ...
- Tue Oct 19, 2010 4:35 pm
- Forum: Volume 3 (300-399)
- Topic: 343 - What Base Is This?
- Replies: 72
- Views: 28309
Re: 343 Java Runtime Error
Anybody please?
Any help would be very appreciated
Any help would be very appreciated
- Thu Oct 14, 2010 5:37 pm
- Forum: Volume 3 (300-399)
- Topic: 343 - What Base Is This?
- Replies: 72
- Views: 28309
343 Java Runtime Error
I always got runtime error on this problem. And I use java
This is my code :
//import java.io.File;
//import java.io.FileInputStream;
//import java.io.FileNotFoundException;
//import java.util.Formatter;
import java.util.Scanner;
import java.lang.Math;
class WhatBaseIsThis {
/**
* @param args ...
This is my code :
//import java.io.File;
//import java.io.FileInputStream;
//import java.io.FileNotFoundException;
//import java.util.Formatter;
import java.util.Scanner;
import java.lang.Math;
class WhatBaseIsThis {
/**
* @param args ...
- Sat Mar 06, 2010 9:10 am
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 124806
10189 - Minesweeper
Hello I don't know why I got WA all the time
The output file had the same output though even the number of endline and the number of character there
are exactly the same with the sample output
#include<iostream>
#include<fstream>
using namespace std;
int main(){
long cols = 0, rows = 0 ...
The output file had the same output though even the number of endline and the number of character there
are exactly the same with the sample output
#include<iostream>
#include<fstream>
using namespace std;
int main(){
long cols = 0, rows = 0 ...