Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    ArrayList<Long> array = new ArrayList<Long>();
    for(int i = 0;i < num;i++){
      array.add(sc.nextLong());
    }
    long count = 0;
    for(int i = 0;i < num - 2;i++){
      for(int j = i + 1;j < num - 1;j++){
        for(int j = j + 1;k < num;k++){
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
            count++;
          }
        }
      }
    }
    System.out.pintln(count);
  }
}
             

Compiler output:
Main.java:14: error: variable j is already defined in method main(String[])
        for(int j = j + 1;k < num;k++){
                ^
Main.java:14: error: cannot find symbol
        for(int j = j + 1;k < num;k++){
                          ^
  symbol:   variable k
  location: class Main
Main.java:14: error: cannot find symbol
        for(int j = j + 1;k < num;k++){
                                  ^
  symbol:   variable k
  location: class Main
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                   ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                              ^
Main.java:15: error: cannot find symbol
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                          ^
  symbol:   variable k
  location: class Main
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                         ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                       ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                  ^
Main.java:15: error: cannot find symbol
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                              ^
  symbol:   variable k
  location: class Main
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                             ^
Main.java:15: error: cannot find symbol
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                                            ^
  symbol:   variable k
  location: class Main
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                                           ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                                                      ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                                                                 ^
Main.java:21: error: cannot find symbol
    System.out.pintln(count);
              ^
  symbol:   method pintln(long)
  location: variable out of type PrintStream
16 errors