Shouldn't this code give me runtime error from the judge?
I get WA.!!!!!
import java.io.*;
import java.util.*;
class Main {
public static void main(String args[]) throws Exception {
int i = 1/0;
}
}
Search found 7 matches
- Thu Sep 04, 2003 10:46 pm
- Forum: Java
- Topic: Why no runtime error?
- Replies: 4
- Views: 3317
- Thu Sep 04, 2003 10:43 pm
- Forum: Java
- Topic: Java Compiler is FLAWED!!
- Replies: 3
- Views: 3327
Agreed
I agree w/ you. This has happened to me too. I got a C++ friend to translate my java code exactly! and it was accepted. I am also suspicious of some other WA I got, cause no other Java programmer solved it either.
This sucks.
This sucks.
- Mon Aug 11, 2003 4:02 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10154 - Weights and Measures
- Replies: 60
- Views: 48662
- Sun Aug 10, 2003 4:17 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10154 - Weights and Measures
- Replies: 60
- Views: 48662
- Sat Aug 09, 2003 7:51 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10154 - Weights and Measures
- Replies: 60
- Views: 48662
- Sat Aug 09, 2003 7:47 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10152 - ShellSort
- Replies: 33
- Views: 14773
- Wed Aug 06, 2003 5:02 am
- Forum: Volume 7 (700-799)
- Topic: 732 - Anagrams by Stack
- Replies: 17
- Views: 16308