Compile Error
Main.java:10: error: cannot find symbol int rst = N-k; ^ symbol: variable k location: class Main 1 error
Code
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N,K;
N = sc.nextInt();
K = sc.nextInt();
int rst = N-k;
System.out.println(rst);
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1226 Event Registration
- Contest
- LUCC Presents Intra LU Junior Programming Contest - Replay
- Language
- Java 8 (OpenJDK 1.8.0_422)
- Submit At
- 2025-09-02 15:46:57
- Judged At
- 2025-09-02 15:46:57
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes