H
H
Helga_Green2020-09-12 12:50:03
Java
Helga_Green, 2020-09-12 12:50:03

Semantic compilation error - how to fix?

I am recently learning Java on my own. Now I was solving a test problem on one site and ran into a problem.

I wrote a code that in IJ solves this problem and gives the correct answer.
But my solution does not work on the site where I have to solve this problem.
Gives me a compilation error.

I tried to run the debugger in IJ and got this message: target vm is not paused by breakpoint request. evaluation of methods is not possible in this mode.

Can someone tell me what it could be? Where can I look for my mistake?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Zagaevsky, 2020-09-12
@zagayevskiy

It's hard to say without specifics. Perhaps this site has an older version of Java than you have locally, and you are using the features of the new version.

J
Jacen11, 2020-09-13
@Jacen11

this usually happens if you just don't see edge cases and handle them. Still sometimes it may not pass by time and memory on the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question