Language: Java

import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*(n-i+1)%MOD*pow(i,MOD-2)%MOD;}longq=K+A;for(int x=0;x<=n;x++){q-=A;if(q % B == 0){long y=q/B;if(y>n)continue;if(y<0) break;ans=(ans+comb[x]*comb[(int)y]%MOD)%MOD;}}System.out.println(ans);}public static long pow(long a,int b){if(b==1)return a;if(b%2==0){long d=pow(a,b/2);return d*d%MOD;}return a*pow(a,b-1)%MOD;}}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*(n-i+1)%MOD*pow(i,MOD-2)%MOD;}longq=K+A;for(int x=0;x<=n;x++){q-=A;if(q % B == 0){long y=q/B;if(y>n)continue;if(y<0) break;ans=(ans+comb[x]*comb[(int)y]%MOD)%MOD;}}System.out.println(ans);}public static long pow(long a,int b){if(b==1)return a;if(b%2==0){long d=pow(a,b/2);return d*d%MOD;}return a*pow(a,b-1)%MOD;}}
                                                                                                                                                                                                                                          ^
  symbol:   variable newlong
  location: class Abc
Main.java:1: error: cannot find symbol
import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*(n-i+1)%MOD*pow(i,MOD-2)%MOD;}longq=K+A;for(int x=0;x<=n;x++){q-=A;if(q % B == 0){long y=q/B;if(y>n)continue;if(y<0) break;ans=(ans+comb[x]*comb[(int)y]%MOD)%MOD;}}System.out.println(ans);}public static long pow(long a,int b){if(b==1)return a;if(b%2==0){long d=pow(a,b/2);return d*d%MOD;}return a*pow(a,b-1)%MOD;}}
                                                                                                                                                                                                                                                                     ^
  symbol:   variable inti
  location: class Abc
Main.java:1: error: cannot find symbol
import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*(n-i+1)%MOD*pow(i,MOD-2)%MOD;}longq=K+A;for(int x=0;x<=n;x++){q-=A;if(q % B == 0){long y=q/B;if(y>n)continue;if(y<0) break;ans=(ans+comb[x]*comb[(int)y]%MOD)%MOD;}}System.out.println(ans);}public static long pow(long a,int b){if(b==1)return a;if(b%2==0){long d=pow(a,b/2);return d*d%MOD;}return a*pow(a,b-1)%MOD;}}
                                                                                                                                                                                                                                                                            ^
  symbol:   variable i
  location: class Abc
Main.java:1: error: cannot find symbol
import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*(n-i+1)%MOD*pow(i,MOD-2)%MOD;}longq=K+A;for(int x=0;x<=n;x++){q-=A;if(q % B == 0){long y=q/B;if(y>n)continue;if(y<0) break;ans=(ans+comb[x]*comb[(int)y]%MOD)%MOD;}}System.out.println(ans);}public static long pow(long a,int b){if(b==1)return a;if(b%2==0){long d=pow(a,b/2);return d*d%MOD;}return a*pow(a,b-1)%MOD;}}
                                                                                                                                                                                                                                                                                  ^
  symbol:   variable i
  location: class Abc
Main.java:1: error: cannot find symbol
import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*(n-i+1)%MOD*pow(i,MOD-2)%MOD;}longq=K+A;for(int x=0;x<=n;x++){q-=A;if(q % B == 0){long y=q/B;if(y>n)continue;if(y<0) break;ans=(ans+comb[x]*comb[(int)y]%MOD)%MOD;}}System.out.println(ans);}public static long pow(long a,int b){if(b==1)return a;if(b%2==0){long d=pow(a,b/2);return d*d%MOD;}return a*pow(a,b-1)%MOD;}}
                                                                                                                                                                                                                                                                                            ^
  symbol:   variable i
  location: class Abc
Main.java:1: error: cannot find symbol
import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*(n-i+1)%MOD*pow(i,MOD-2)%MOD;}longq=K+A;for(int x=0;x<=n;x++){q-=A;if(q % B == 0){long y=q/B;if(y>n)continue;if(y<0) break;ans=(ans+comb[x]*comb[(int)y]%MOD)%MOD;}}System.out.println(ans);}public static long pow(long a,int b){if(b==1)return a;if(b%2==0){long d=pow(a,b/2);return d*d%MOD;}return a*pow(a,b-1)%MOD;}}
                                                                                                                                                                                                                                                                                                    ^
  symbol:   variable i
  location: class Abc
Main.java:1: error: cannot find symbol
import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*(n-i+1)%MOD*pow(i,MOD-2)%MOD;}longq=K+A;for(int x=0;x<=n;x++){q-=A;if(q % B == 0){long y=q/B;if(y>n)continue;if(y<0) break;ans=(ans+comb[x]*comb[(int)y]%MOD)%MOD;}}System.out.println(ans);}public static long pow(long a,int b){if(b==1)return a;if(b%2==0){long d=pow(a,b/2);return d*d%MOD;}return a*pow(a,b-1)%MOD;}}
                                                                                                                                                                                                                                                                                                            ^
  symbol:   variable i
  location: class Abc
Main.java:1: error: cannot find symbol
import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*(n-i+1)%MOD*pow(i,MOD-2)%MOD;}longq=K+A;for(int x=0;x<=n;x++){q-=A;if(q % B == 0){long y=q/B;if(y>n)continue;if(y<0) break;ans=(ans+comb[x]*comb[(int)y]%MOD)%MOD;}}System.out.println(ans);}public static long pow(long a,int b){if(b==1)return a;if(b%2==0){long d=pow(a,b/2);return d*d%MOD;}return a*pow(a,b-1)%MOD;}}
                                                                                                                                                                                                                                                                                                                         ^
  symbol:   variable i
  location: class Abc
Main.java:1: error: cannot find symbol
import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*(n-i+1)%MOD*pow(i,MOD-2)%MOD;}longq=K+A;for(int x=0;x<=n;x++){q-=A;if(q % B == 0){long y=q/B;if(y>n)continue;if(y<0) break;ans=(ans+comb[x]*comb[(int)y]%MOD)%MOD;}}System.out.println(ans);}public static long pow(long a,int b){if(b==1)return a;if(b%2==0){long d=pow(a,b/2);return d*d%MOD;}return a*pow(a,b-1)%MOD;}}
                                                                                                                                                                                                                                                                                                                                       ^
  symbol:   variable longq
  location: class Abc
Main.java:1: error: cannot find symbol
import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*(n-i+1)%MOD*pow(i,MOD-2)%MOD;}longq=K+A;for(int x=0;x<=n;x++){q-=A;if(q % B == 0){long y=q/B;if(y>n)continue;if(y<0) break;ans=(ans+comb[x]*comb[(int)y]%MOD)%MOD;}}System.out.println(ans);}public static long pow(long a,int b){if(b==1)return a;if(b%2==0){long d=pow(a,b/2);return d*d%MOD;}return a*pow(a,b-1)%MOD;}}
                                                                                                                                                                                                                                                                                                                                                                       ^
  symbol:   variable q
  location: class Abc
Main.java:1: error: cannot find symbol
import java.util.*;class Abc{static int MOD = 998244353;public static void main (String[] args){Scanner sc = new Scanner(System.in);int n=sc.nextInt();int A=sc.nextInt();int B=sc.nextInt();long K=sc.nextLong();long ans = 0;long[]comb=newlong[n+1];comb[0]=1;for(inti=1;i<n+1;i++){comb[i]=comb[i-1]*