Borderou de evaluare (job #1603610)
Utilizator | Data | 17 februarie 2016 18:05:03 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | java | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
Main.java:8: error: unreported exception FileNotFoundException; must be caught or declared to be thrown
FileInputStream In = new FileInputStream("adunare.in");
^
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown
a = In.read();
^
Main.java:10: error: unreported exception IOException; must be caught or declared to be thrown
b = In.read();
^
Main.java:11: error: unreported exception IOException; must be caught or declared to be thrown
In.close();
^
Main.java:12: error: unreported exception FileNotFoundException; must be caught or declared to be thrown
FileOutputStream Out = new FileOutputStream("adunare.out");
^
Main.java:13: error: unreported exception IOException; must be caught or declared to be thrown
Out.write(a+b);
^
Main.java:14: error: unreported exception IOException; must be caught or declared to be thrown
Out.close();
^
7 errors
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !