v1sha1's blog

By v1sha1, history, 3 years ago, In English

I tried googling but no luck.

ANY HELP WOULD BE APPRECIATED.

#### when running test cases on the IntelliJ idea using CHELPER it gives me this error Verdict: Presentation Error (More than 0 tokens expected)

"C:\Program Files\Java\jdk1.8.0_111\bin\java" -Xmx256M -Xss8M "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.2\lib\idea_rt.jar=48151:C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_111\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\rt.jar;C:\Users\Vishal\IdeaProjects\Code\out\production\Code;C:\Users\Vishal.IntelliJIdea2017.3\config\plugins\chelper.jar;C:\Users\Vishal\Desktop\lib\cojac.jar;C:\Users\Vishal\Desktop\lib\chelper.jar" net.egork.chelper.tester.NewTester "src/Demo/Problem A — Soft Drinking.task"

Codeforces Round #107 (Div. 2) — Problem A — Soft Drinking

Test #0: Input: 3 4 5 10 8 100 3 1

Expected output: 2

Execution result: 2

Verdict: Presentation Error (More than 0 tokens expected) in 0.005 s.

Test #1: Input: 5 100 10 1 19 90 4 3

Expected output: 3

Execution result: 3

Verdict: Presentation Error (More than 0 tokens expected) in 0.003 s.

Test #2: Input: 10 1000 1000 25 23 1 50 1

Expected output: 0

Execution result: 0

Verdict: Presentation Error (More than 0 tokens expected) in 0.003 s.

================================================================== Test results: Test #0: Presentation Error (More than 0 tokens expected) Test #1: Presentation Error (More than 0 tokens expected) Test #2: Presentation Error (More than 0 tokens expected)

Process finished with exit code 0

 
 
 
 
  • Vote: I like it
  • -12
  • Vote: I do not like it

»
2 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Same error for me. Anybody have a clue?

UPDATE: OOps! How very silly of me. I just figured out the problem — I am supposed to use the out object that is passed into the method, but I was printing using System.out.printx instead!

Leaving this here in case someone else runs into the same issue.