P1000 A+B Problem
Overview
Judge Result | Compile Error |
Problem | P1000 A+B Problem |
Submit Time | June 24, 2019, 1:14:34 AM |
Language | Java |
Judger | Default Judger |
Used Time | 0 ms |
Used Memory | 0 K |
Execute Time | June 24, 2019, 1:14:30 AM |
Judge Result
Compile Error.
/tmp/voj-1365/auDIZzoTBsQm.java:5: error: cannot find symbol
int a=sc.nextInteger();
^
symbol: method nextInteger()
location: variable sc of type Scanner
/tmp/voj-1365/auDIZzoTBsQm.java:6: error: cannot find symbol
int b=sc.nextInteger();
^
symbol: method nextInteger()
location: variable sc of type Scanner
/tmp/voj-1365/auDIZzoTBsQm.java:7: error: no suitable method found for printf(int)
System.out.printf(a+b);
^
method PrintStream.printf(String,Object...) is not applicable
(argument mismatch; int cannot be converted to String)
method PrintStream.printf(Locale,String,Object...) is not applicable
(argument mismatch; int cannot be converted to Locale)
3 errors
Compile Error, Time = 0 ms, Memory = 0 KB, Score = 0.