criyle/codenet-compile-errors huggingface dataset:
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABC_087A
{
    class Program
    {
        static void Main(string[] args)
        {
            
            int x, a, b, c;

            x = int.Parse(Console.ReadLine());
            a = int.Parse(Console.ReadLine());
            b = int.Parse(Console.ReadLine());

            c = (x - a) % b;

            Console.WriteLine(c);
            Console.ReadKey();
         }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:25:6: error: expected ';' after class definition
   25 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC_087A::Program::Main(int*)':
a.cc:16:17: error: expected primary-expression before 'int'
   16 |             x = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:17:17: error: expected primary-expression before 'int'
   17 |             a = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:18:17: error: expected primary-expression before 'int'
   18 |             b = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:22:13: error: 'Console' was not declared in this scope
   22 |             Console.WriteLine(c);
      |             ^~~~~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABC087A
{
    class Program
    {
        static void Main(string[] args)
        {
            int x, a, b, c;

            x = int.Parse(Console.ReadLine());
            a = int.Parse(Console.ReadLine());
            b = int.Parse(Console.ReadLine());

            c = (x - a) % b;

            Console.WriteLine(c);

            Console.ReadKey();
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:25:6: error: expected ';' after class definition
   25 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC087A::Program::Main(int*)':
a.cc:15:17: error: expected primary-expression before 'int'
   15 |             x = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:16:17: error: expected primary-expression before 'int'
   16 |             a = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:17:17: error: expected primary-expression before 'int'
   17 |             b = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:21:13: error: 'Console' was not declared in this scope
   21 |             Console.WriteLine(c);
      |             ^~~~~~~
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(system.in);
      int x = sc.nextInt();
      int a = sc.nextInt();
      int b = sc.nextInt();
      x = x-a;
      while(x>=0){
      x -= b;
      }
      System.out.println(x+b);
      sc.close();
    }
}


Compiler output:
Main.java:4: error: cannot find symbol
    	Scanner sc = new Scanner(system.in);
    	                         ^
  symbol:   variable system
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(system.in);
      int x = sc.nextInt();
      int a = sc.nextInt();
      int b = sc.nextInt();
      x = x-a;
      while(x>=0){
      x -= b
      }
      System.out.println(x+b);
      sc.close();
    }
}

Compiler output:
Main.java:10: error: ';' expected
      x -= b
            ^
1 error
Language: C++

#include <iostream>

int main() {
  int n = 0, x = 0, a = 0;
  cin >> n >> x >> a;
  cout << (n - x) % a << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> n >> x >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << (n - x) % a << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << (n - x) % a << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int x, a, b;
  cin >> x >> a >> b;
  cout << (x - a) % b) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before ')' token
    7 |   cout << (x - a) % b) << endl;
      |                      ^
      |                      ;
Language: Java

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int x,a,b;
    cin >> x >> a >> b;
    int c=x-a;
    int d=c/b;
    cout << c-b*d << endl;
    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:8: error: not a statement
    cin >> x >> a >> b;
                  ^
Main.java:11: error: not a statement
    cout << c-b*d << endl;
                  ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: Java

import java.util.*;
 
public class AtCoder {
    static Scanner scanner = new Scanner(System.in);
 
    public static void main(String[]$) {
      	System.out.println(Math.max(0, scanner.nextInt() - scanner.nextInt()) % scanner.nextInt());
    }
}

Compiler output:
Main.java:3: error: class AtCoder is public, should be declared in a file named AtCoder.java
public class AtCoder {
       ^
1 error
Language: Java

import java.util.*;

public class AtCoder {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
      	System.out.println(Math.max(0, scanner.nextInt() - scanner.nextInt()) % scanner.nextInt())
    }
}

Compiler output:
Main.java:7: error: ';' expected
      	System.out.println(Math.max(0, scanner.nextInt() - scanner.nextInt()) % scanner.nextInt())
      	                                                                                          ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main () {
  int A,B,C,X;
  cin >> A >> B >> C >> X;
  
  int count =0;
  for (int i = 0;i<=A;i++) {
    for (int j = 0;i<=B;j++) {
      for (int k = 0;i<=C;k++) {
        int Sum = 500*i + 100*j + 50*k
        if (Sum == X) {
          count++;
        }
      }
    }
  }
  
  cout << count << endl;  
}






Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected ',' or ';' before 'if'
   13 |         if (Sum == X) {
      |         ^~
Language: C++

#include<iostream>

using namespace std;

int main(){
  int a,b,c,x,y,z,w;
  //q,b,cは５０以下の整数、xは５０以上２００００以下の５０の倍数
  cin >> a >> b >> c >> x;
  
  int count=0;
  for(int i=0;i<=c;i++){
  	y=x-50*i;
    if(y<=0)
      break;
    else if(y=0)
      count++;
      break;
    else{
    	for(int j=0;j<=b;j++){
          z=y-100*j;
          if(z<=0)
            break;
          else if(z=0)
            cuont++;
          	break;
          else if(a=0)
          	break;
          else{
          	for(int k=1;k<=a;k++)
				w=z-500*k;
            	if(w=0)
                  count++;
             	  break;
            	else
                  break;           
          }
        }
     }
   } 
　cout << count <<endl;
  return 0;
}


Compiler output:
a.cc:40:1: error: extended character 　 is not valid in an identifier
   40 | 　cout << count <<endl;
      | ^
a.cc: In function 'int main()':
a.cc:18:5: error: 'else' without a previous 'if'
   18 |     else{
      |     ^~~~
a.cc:24:13: error: 'cuont' was not declared in this scope; did you mean 'count'?
   24 |             cuont++;
      |             ^~~~~
      |             count
a.cc:26:11: error: 'else' without a previous 'if'
   26 |           else if(a=0)
      |           ^~~~
a.cc:34:17: error: 'else' without a previous 'if'
   34 |                 else
      |                 ^~~~
a.cc:40:1: error: '\U00003000cout' was not declared in this scope
   40 | 　cout << count <<endl;
      | ^~~~~~
Language: C++

#include<iostream>
// #include<string>
using namespace std;

int main(){
    cin >> A >> B >>C >>X;
    int res=0;
    for (int a=0;a<=A; ++a){
        for (int b=0;b<=B;++b){
            for(int c=0;c<=C;++c){
                int total=500*a+100*b+50*c;
                if (total==X)++res;

            }
        }
    }
    cout <<res <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'A' was not declared in this scope
    6 |     cin >> A >> B >>C >>X;
      |            ^
a.cc:6:17: error: 'B' was not declared in this scope
    6 |     cin >> A >> B >>C >>X;
      |                 ^
a.cc:6:21: error: 'C' was not declared in this scope
    6 |     cin >> A >> B >>C >>X;
      |                     ^
a.cc:6:25: error: 'X' was not declared in this scope
    6 |     cin >> A >> B >>C >>X;
      |                         ^
Language: C++

#include<iostraem>
using namespace std;
int main(){
  int x,a,b,n;
  cin>>x>>a>>b;
  n = x/a;
  x = x-a*n;
  n = x/b;
  x = x-b*n;
  cout<<x<<endl;
  return 0;
}
  

Compiler output:
a.cc:1:9: fatal error: iostraem: No such file or directory
    1 | #include<iostraem>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostrem>
using namespace std;
int main(){
  int x,a,b,n;
  cin>>x>>a>>b;
  n = x/a;
  x = x-a*n;
  n = x/b;
  x = x-b*n;
  cout<<x<<endl;
  return 0;
}
  

Compiler output:
a.cc:1:9: fatal error: iostrem: No such file or directory
    1 | #include<iostrem>
      |         ^~~~~~~~~
compilation terminated.
Language: C

{
 int x,a,b;
  scanf("%d %d %d", &x,&a,&b);
  x=(x-a);
    do{
      x=x-b;
    }while(x>=0);
  if(x<0)
  x=x+b;
    printf("%d",x);
  return 0;
}

Compiler output:
main.c:1:1: error: expected identifier or '(' before '{' token
    1 | {
      | ^
Language: C++

int main(void)
{
  int x,a,b;
  scanf("%d %d %d",&x,&a,&b);
  printf("%d",(x-a)%b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d %d %d",&x,&a,&b);
      |   ^~~~~
a.cc:5:3: error: 'printf' was not declared in this scope
    5 |   printf("%d",(x-a)%b);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
Language: C++

#include <iostream>
using namesoace std;
int main(void){
  int X,A,B;
  cin >> X >> A >> B;
  
  X = X - A;
  
  cout << X % B << endl;
  
  return 0;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesoace'
    2 | using namesoace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> X >> A >> B;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << X % B << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << X % B << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

include <iostream>
using namespace std;
int main() {
  int a,b,c,x;
  cin >> a >> b >> c >> x;
  int res=0,i,j,k;
  for (i=0;i<=A;i++){
    for (j=0;j<=B;j++){
      for (k=0;k<=C;k++){
        int total = 500*i+100*j+50*k; 
        if (total==X) res++;
      }
    }
  }
  cout << res << endl;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <iostream>
      |         ^
main.c: In function 'main':
main.c:5:3: error: 'cin' undeclared (first use in this function)
    5 |   cin >> a >> b >> c >> x;
      |   ^~~
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:15: error: 'A' undeclared (first use in this function)
    7 |   for (i=0;i<=A;i++){
      |               ^
main.c:8:17: error: 'B' undeclared (first use in this function)
    8 |     for (j=0;j<=B;j++){
      |                 ^
main.c:9:19: error: 'C' undeclared (first use in this function)
    9 |       for (k=0;k<=C;k++){
      |                   ^
main.c:11:20: error: 'X' undeclared (first use in this function)
   11 |         if (total==X) res++;
      |                    ^
main.c:15:3: error: 'cout' undeclared (first use in this function)
   15 |   cout << res << endl;
      |   ^~~~
main.c:15:18: error: 'endl' undeclared (first use in this function)
   15 |   cout << res << endl;
      |                  ^~~~
Language: C++

#include<vector>

int main(){
  vector<int> v;
  for(int i=0;i<10000000000;i++){
    v.push_back(1);
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<int> v;
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:4:10: error: expected primary-expression before 'int'
    4 |   vector<int> v;
      |          ^~~
a.cc:6:5: error: 'v' was not declared in this scope
    6 |     v.push_back(1);
      |     ^
Language: C++

int main()
{
	int A, B, C, X;
	int i, j, k,cnt;
	cnt = 0;
		
	scanf("%d", &A);
	scanf("%d", &B);
	scanf("%d", &C);
	scanf("%d", &X);

	for (i = 0; i <= A; i++) {
		for (j = 0; j <= B; j++) {
			for (k = 0; k <= C ; k++) {
				int Y;
				Y = 500 * i + 100 * j + 50 * k;
				if (X == Y) {
					//printf("%d%d%d %d", i, j, k, Y);
					cnt++;
				}

			}
		}
	}

	printf("%d", cnt);


}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf' was not declared in this scope
    7 |         scanf("%d", &A);
      |         ^~~~~
a.cc:26:9: error: 'printf' was not declared in this scope
   26 |         printf("%d", cnt);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int X,A,B;
  cin>>X>>A>>B;
  buy=(X-A)/B;
  cout<<X-A-B*buy<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'buy' was not declared in this scope
    7 |   buy=(X-A)/B;
      |   ^~~
Language: Java



import java.util.Scanner;

public class {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int X = sc.nextInt();
		int pattern = 0;
		for(int i = 0; i < A + 1; i++) {
			int sumi = 500 * i;
			if(!(sumi > X)) {
				for(int j = 0; j < B + 1; j++) {
					int sumj = sumi + 100 * j;
					if(!(sumj > X)) {
						if(!((X - sumj) / 50 > C)) {
							pattern++;
						}
					} else {
						break;
					}
				}
			} else {
				break;
			}
		}
		System.out.println(pattern);
	}

}


Compiler output:
Main.java:5: error: <identifier> expected
public class {
            ^
1 error
Language: C++

#include <cstdio>  
using namespace std;  
int main() { 	
	int a,b,c,d,e; 	
	scanf("%d %d %d", &a, &b, &c);
		printf("%d", (a-b)%c)
} 



Compiler output:
a.cc: In function 'int main()':
a.cc:6:38: error: expected ';' before '}' token
    6 |                 printf("%d", (a-b)%c)
      |                                      ^
      |                                      ;
    7 | }
      | ~
Language: C++

#include <iostream>

using namespace std;

template<class T>
ostream& operator<<(ostream& os, const vector<T> &vec){
    os << "[";
    for(int i=0;i<vec.size();i++){
        os << (i==0?"":" ") << vec[i];
    }
    os <<  "]";
    return os;
}


int main(){
    int x, a, b;
    cin >> x >> a >> b;

    cout << (x-a) % b << endl;
    
    return 0;
}


Compiler output:
a.cc:6:40: error: 'vector' does not name a type
    6 | ostream& operator<<(ostream& os, const vector<T> &vec){
      |                                        ^~~~~~
a.cc:6:46: error: expected ',' or '...' before '<' token
    6 | ostream& operator<<(ostream& os, const vector<T> &vec){
      |                                              ^
a.cc: In function 'std::ostream& operator<<(std::ostream&, int)':
a.cc:8:19: error: 'vec' was not declared in this scope
    8 |     for(int i=0;i<vec.size();i++){
      |                   ^~~
Language: C++

#include<stdio.h>
int main(void){
  int a,b,x;
  scanf("%d\n%d\n%d\n",&a,&b,&x);
  
  printf("%d"x-a-b);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: unable to find string literal operator 'operator""x' with 'const char [3]', 'long unsigned int' arguments
    6 |   printf("%d"x-a-b);
      |          ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  	int X,A,B;
	cin >> X >> A >> B;
  	cout (X-A)%B;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (int)'
    7 |         cout (X-A)%B;
      |         ~~~~~^~~~~
Language: C++

#include "pch.h"
#include <iostream>
using namespace std;

int main()
{
	int x, a, b;
	cin >> x >> a >> b;
	cout << (x - a) - ((x - a) / b * b) << endl;
}

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;

int main(void){
    int X,A,B;
    cin>>X>>A>>B;
    X-=A;
    while(B=<X){
        X-=B;
    }
    cout<<X<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected primary-expression before '<' token
    8 |     while(B=<X){
      |             ^
Language: C

#include<stdio.h>
int main(){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  printf("%d\n"(a - b) % c);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: called object is not a function or function pointer
    5 |   printf("%d\n"(a - b) % c);
      |          ^~~~~~
Language: C++

# A
x = int(input())
a = int(input())
b = int(input())
print((x-a)%b)

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #A
    1 | # A
      |   ^
a.cc:2:1: error: 'x' does not name a type
    2 | x = int(input())
      | ^
Language: C++

using namespace std;
#include<bits/stdc++.h>
#define BEGIN ios_base::sync_with_stdio(0);cin.tie(0);
#define END return EXIT_SUCCESS;
#define FOR(I,A,B) for((I)=(A);(I)<(B);(I)++)
#define REP(I,N) FOR((I),0,(N))
#define UP(I,A,B) for((I)=(A);(I)<=(B);(I)++)
#define DW(I,A,B) for((I)=(A);(I)>=(B);(I)--)
#define IN(P) cin>>(P)
#define IN2(P1,P2) cin>>(P1)>>(P2)
#define IN3(P1,P2,P3) cin>>(P1)>>(P2)>>(P3)
#define INS(I,N,V) REP((I),(N)) cin>>(V[I])
#define INS2(I,N,V1,V2) REP((I),(N)) cin>>(V1[I])>>(V2[I]);
#define INS3(I,N,V1,V2,V3) REP((I),(N)) cin>>(V1[I])>>(V2[I])>>(V3[I]);
#define OUT(P) cout<<(P)<<endl
#define OUT2(P1,P2) cout<<(P1)<<" "<<(P2)<<endl
#define OUT3(P1,P2,P3) cout<<(P1)<<" "<<(P2)<<" "<<(P3)<<endl
#define OUTS(I,N,V) REP((I),(N)) cout<<(V[i])<<endl
#define ALL(C) (C).begin(),(C).end()
#define RALL(C) (C).rbegin(),(C).rend()
#define mp make_pair
#define pb push_back
#define lb lower_bound
#define ub upper_bound
template<class T>inline bool chmax(T& a,T b){if(a<b){a=b;return true;}return false;}
template<class T>inline bool chmin(T& a,T b){if(a>b){a=b;return true;}return false;}

int X,A,B;
inline void solve(){
  IN3(X,A,B);
  OUT((X-A)%B));
}

int main(int argc,char**argv){
  BEGIN
  solve();
  END
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:31:15: error: expected ';' before ')' token
   31 |   OUT((X-A)%B));
      |               ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int x,a,b;
  cin>>x>>a>>b;
  cout<<(x-a)%b
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'return'
    6 |   cout<<(x-a)%b
      |                ^
      |                ;
    7 |   return 0;
      |   ~~~~~~
Language: C++

#include <iostream>using namespace std;int main(void){int n,a,b;cin >> n >> a >> b;cout << (n-a)%b << endl;}

Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <iostream>using namespace std;int main(void){int n,a,b;cin >> n >> a >> b;cout << (n-a)%b << endl;}
      |                          ^~~~~~~~~
a.cc:1:10: fatal error: iostream>usin: No such file or directory
    1 | #include <iostream>using namespace std;int main(void){int n,a,b;cin >> n >> a >> b;cout << (n-a)%b << endl;}
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
#include <string>
using namespace std;
int main(){
int A,B,C;
cin >> A >> B >> C;
A -= B;
A -= A / C * C
cout << A << endl;
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before 'cout'
   10 | A -= A / C * C
      |               ^
      |               ;
   11 | cout << A << endl;
      | ~~~~
Language: Java

import java.util.*;

public class test{
	public static void main(String[] argc){
      Scanner sc = new Scanner(System.in);
      int x = sc.nextInt();
      int a = sc.nextInt();
      int b = sc.nextInt();
      
      System.out.println((x-a) % b);
    }
}

Compiler output:
Main.java:3: error: class test is public, should be declared in a file named test.java
public class test{
       ^
1 error
Language: C++

#include <iostream>
using namespace std;

int main() {
  int A,B,C,X
  cin >> A >> B >> C >> X;
  int res = 0;
  for (int a = 0; a <= A; ++a) {
    for (int b = 0; b <= B; ++b) {
      for (int c = 0; c <= C; ++c) {
        if (a*500 + b*100 + c*50 == X) ++res; 
      }
    }
  }
  std::cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> A >> B >> C >> X;
      |   ^~~
a.cc:11:37: error: 'X' was not declared in this scope
   11 |         if (a*500 + b*100 + c*50 == X) ++res;
      |                                     ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b,c,x;
cin >> a >> b >>c >> x;
int y = 0;
for(int A =0;A <= a; ++A){
for(int B =0;B <= b; ++B){
for(int C =0;C <= c; ++C){
int total = 500*A + 100*B + 50*C;
if(total == x) ++y
}
}
}
cout << y << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected ';' before '}' token
   11 | if(total == x) ++y
      |                   ^
      |                   ;
   12 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int main()[
int a,b,c,x;
cin >> a >> b >>c >> x;
int y = 0;
for(int A =0;A <= a; ++A){
for(int B =0;B <= b; ++B){
for(int C =0;C <= c; ++C){
int total = 500*A + 100*B + 50*C;
if(total == x) ++y
}
}
}
cout << y << endl;
}


Compiler output:
a.cc:4:1: error: expected primary-expression before 'int'
    4 | int a,b,c,x;
      | ^~~
a.cc:3:12: error: expected ']' before 'int'
    3 | int main()[
      |            ^
      |            ]
    4 | int a,b,c,x;
      | ~~~         
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a >> b >>c >> x;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for(int A =0;A <= a; ++A){
      | ^~~
a.cc:7:14: error: 'A' does not name a type
    7 | for(int A =0;A <= a; ++A){
      |              ^
a.cc:7:22: error: expected unqualified-id before '++' token
    7 | for(int A =0;A <= a; ++A){
      |                      ^~
a.cc:15:1: error: 'cout' does not name a type
   15 | cout << y << endl;
      | ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C

#include <stdio.h>
int main){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int d;
d=a-b;

printf("%d",d%b);

return 0;
}

Compiler output:
main.c:2:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before ')' token
    2 | int main){
      |         ^
Language: Java

import java.util.*;
class Main
{
    public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a = sc.nextInt(), b = sc.nextInt();
        ystem.out.println((n - a) % b);
    }
}

Compiler output:
Main.java:9: error: package ystem does not exist
        ystem.out.println((n - a) % b);
             ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
    int a,b,x;
    cin >> x >> a >> b;
    cout << (x-a)％b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before '\U0000ff05b'
    7 |     cout << (x-a)％b << endl;
      |                  ^~~
      |                  ;
Language: C++

#include <iostream>
using namespace std;

int main(void){
  int n500, n100, n50;
  int total;
  int ans = 0;
  cin >> n500 >> n100 >> n50 >> total;
  for(int i = 0; i < n500; ++i){
    for(int j = 0; j < n100; ++j){
      for(int k = 0; k < n50; ++k){
	if(500*i + 100*j + 50*k == total){
	  ++ans
	}
      }
    }
  }
  
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before '}' token
   13 |           ++ans
      |                ^
      |                ;
   14 |         }
      |         ~
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int a = sc.nextInt();
		int b = sc.nextInt();
		System,out.println(x-((x-a)/b)*b);
	}
}

Compiler output:
Main.java:8: error: not a statement
		System,out.println(x-((x-a)/b)*b);
		^
Main.java:8: error: ';' expected
		System,out.println(x-((x-a)/b)*b);
		      ^
2 errors
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  cout<<a-b-[c*(a-b/c)]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ',' before '*' token
    6 |   cout<<a-b-[c*(a-b/c)]<<endl;
      |               ^
      |               ,
a.cc:6:15: error: expected identifier before '*' token
a.cc: In lambda function:
a.cc:6:24: error: expected '{' before '<<' token
    6 |   cout<<a-b-[c*(a-b/c)]<<endl;
      |                        ^~
a.cc: In function 'int main()':
a.cc:6:12: error: no match for 'operator-' (operand types are 'int' and 'main()::<lambda()>')
    6 |   cout<<a-b-[c*(a-b/c)]<<endl;
      |         ~~~^~~~~~~~~~~~
      |          |  |
      |          |  main()::<lambda()>
      |          int
In file included from /usr/include/c++/14/string:48,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
  618 |     operator-(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:618:5: note:   template argument deduction/substitution failed:
a.cc:6:24: note:   mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
    6 |   cout<<a-b-[c*(a-b/c)]<<endl;
      |                        ^~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__x.base() - __y.base())) std::operator-(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
 1790 |     operator-(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note:   template argument deduction/substitution failed:
a.cc:6:24: note:   mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
    6 |   cout<<a-b-[c*(a-b/c)]<<endl;
      |                        ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x,a,b;
    cin>>x>>a>>>b;
    x-=a;
    x%=b;
    cout<<x<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected primary-expression before '>' token
    5 |     cin>>x>>a>>>b;
      |                ^
Language: C++

/**
 *      ABC 87 A
 *      author  : kyomukyomupurin
 *      created : 2018-09-01 04:45:39
**/

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    int X, A, B; cin >> X >> A >> b;
    cout << (X - A) % B << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:35: error: 'b' was not declared in this scope
   14 |     int X, A, B; cin >> X >> A >> b;
      |                                   ^
Language: C++

#include "iostream"
#include <stdio.h>
#include <algorithm>
#include <stdlib.h>
#include <string>
#include <cctype>
#include <stack>
#include <vector>
#include <list>
#include <queue>
using namespace std;
  int a,b,c,ans;
  std::cin >> c >> a >> b;
  ans=c-a;
  while(ans>0) ans-=b;
  std::cout << ans+b << '\n';
  return 0;

}


Compiler output:
a.cc:13:8: error: 'cin' in namespace 'std' does not name a type
   13 |   std::cin >> c >> a >> b;
      |        ^~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:3: error: 'ans' does not name a type
   14 |   ans=c-a;
      |   ^~~
a.cc:15:3: error: expected unqualified-id before 'while'
   15 |   while(ans>0) ans-=b;
      |   ^~~~~
a.cc:16:8: error: 'cout' in namespace 'std' does not name a type
   16 |   std::cout << ans+b << '\n';
      |        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:3: error: expected unqualified-id before 'return'
   17 |   return 0;
      |   ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<cstdio>
using namesapce std;
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    printf("%d",(x-y)%z);
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    int x,a,b;
    cin>>x>>a>>b;
    int y=x-a;
    y=y-(y/b)*b;
    cout<<y;
    return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before '}' token
   11 |     return 0
      |             ^
      |             ;
   12 | }
      | ~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    int x,a,b,y;
    cin>>x>>a>>b;
    y=x-a;
    y=y-(y/b)*b;
    cout<<y;
    return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before '}' token
   11 |     return 0
      |             ^
      |             ;
   12 | }
      | ~
Language: C++

#inlcude<iostream>
using namespace std;

int main(){
  int a,b,c;
  cin >> a >> b >> c;
  cout << (a-b)%c << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude<iostream>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << (a-b)%c << endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:22: error: 'endl' was not declared in this scope
    7 |   cout << (a-b)%c << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude<iostream>
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int x,a,b;
	cin>>x>>a>>b;
	cout<<(x-a)%b<<endl;
	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected '}' at end of input
    8 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    cout<<(a-b)%c<<endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before '}' token
    6 |     cout<<(a-b)%c<<endl
      |                        ^
      |                        ;
    7 | }
      | ~
Language: C++

#include <iostream>
 
int main(void){
  
  int N;
  std::cin >> N;
  int field[2][N];
  
  int cnt = N;
  int elm = 0;
  	while (--cnt){
    	std::cin >> field[elm][cnt];
      	elm += 1;
    }
  
  int sum = 0;
  int max = 0;
  int elm = 0;
  for(int i = 0; i < N; i++){
 	 for(int j = 0; j < N; j++){
   	 	if(i >= j)
          sum += field[0][j];
        else
          sum += field[1][j] = field[0][j - 1];
     }
     if(sum > max){
       max = sum;
     }
  }
  
  std::cout << max << std::endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: redeclaration of 'int elm'
   18 |   int elm = 0;
      |       ^~~
a.cc:10:7: note: 'int elm' previously declared here
   10 |   int elm = 0;
      |       ^~~
Language: C++

#include <iostream>
 
int main(void){
  
  std::cin >> A >> B >> C >> X;
  
  int cnt = 0;
  for(int i = 0; i < A; i++)
    for(int j = 0; j < B; j++)
      for(int k = 0; k < C; k++)
        if(X == i * 500 + j * 100 + k * 50)
          cnt++;
  
  std::cout << cnt;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'A' was not declared in this scope
    5 |   std::cin >> A >> B >> C >> X;
      |               ^
a.cc:5:20: error: 'B' was not declared in this scope
    5 |   std::cin >> A >> B >> C >> X;
      |                    ^
a.cc:5:25: error: 'C' was not declared in this scope
    5 |   std::cin >> A >> B >> C >> X;
      |                         ^
a.cc:5:30: error: 'X' was not declared in this scope
    5 |   std::cin >> A >> B >> C >> X;
      |                              ^
Language: C++

#include <iostream>
 
int main(void){
  
  std::cin >> A >> B >> C >> X;
  
  int cnt = 0;
  for(int i = 0; i < A; i++)
    for(int j = 0; j < B; j++)
      for(int k = 0; k < C; k++)
        if(X == i * 500 + j * 100 * 50)
          cnt++;
  
  std::cout << cnt;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'A' was not declared in this scope
    5 |   std::cin >> A >> B >> C >> X;
      |               ^
a.cc:5:20: error: 'B' was not declared in this scope
    5 |   std::cin >> A >> B >> C >> X;
      |                    ^
a.cc:5:25: error: 'C' was not declared in this scope
    5 |   std::cin >> A >> B >> C >> X;
      |                         ^
a.cc:5:30: error: 'X' was not declared in this scope
    5 |   std::cin >> A >> B >> C >> X;
      |                              ^
Language: C++

#include <iostream>

int main(void){
  
  int X,A,B;
  
  std::cin >> X >> A >> B;
  
  int balance = X - A;
  
  while(balance > B){
    balance -= B
  }
  
  std::cout << balance;
  
  
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected ';' before '}' token
   12 |     balance -= B
      |                 ^
      |                 ;
   13 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  cin >> X >> A >> B;
  cout << (X-A)%B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'X' was not declared in this scope
    5 |   cin >> X >> A >> B;
      |          ^
a.cc:5:15: error: 'A' was not declared in this scope
    5 |   cin >> X >> A >> B;
      |               ^
a.cc:5:20: error: 'B' was not declared in this scope
    5 |   cin >> X >> A >> B;
      |                    ^
Language: C++

#include <bits/stdc++.h> 

using namespace std;

#define rep(i,n) for(long long int i=0;i<n;i++)
#define rep1(i,n) for(long long int i=1;i<=n;i++)
#define repU(i,bottom,ceiling) for(long long int (i)=(bottom);(i)<=(ceiling);(i)++)
#define repD(i,ceiling,bottom) for(long long int (i)=(ceiling);(i)>=(bottom);(i)--)
#define pub push_back
#define pob pop_back
#define pf printf
#define sf scanf
#define ci(a) cin>>a
#define lco(a) cout<<a<<endl
#define co(a) cout<<a
#define vci(v) for(long long int i=0;i<v.size();i++) cin>>v[i]
#define vco(v) for(long long int i=0;i<v.size();i++){ cout<<v[i]<<' '; } cout<<endl
#define mp make_pair
#define fir first
#define sec second
#define clr(arr) memset((arr),0,sizeof(arr))

typedef long long int ll;
typedef unsigned long long ull;
typedef double db;
typedef long double ldb;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<double> vb;
typedef vector<vector<double>> vvd;
typedef vector<long long int> vll;
typedef vector<vector<long long int>> vvll;
typedef pair<int,int> pii;

const string alphabet("abcdefghijklmnopqrstuvwxyz");
const vector<pair<int,int>> dir={{1,0},{0,1},{-1,0},{0,-1},{1,1},{-1,1},{-1,-1},{1,-1}};
const long double Pi=3.141592653589793238462643383279502884197;
const long double Napier=2.71828182845904523536;
const int Inf=(int)2e9+1e8;
const int Mod=(int)1e9+7;

template<typename T,typename U>                                                   
inline pair<T,U> operator+(const pair<T,U> & l,const pair<T,U> & r) {   
    return {l.fir+r.fir,l.sec+r.sec};                                    
} 

template<typename T,typename U> 
inline pair<T,U> operator-(const pair<T,U> & l,const pair<T,U> & r) {   
    return {l.fir-r.fir,l.sec-r.sec};                                    
} 

template<typename T,typename U>                                                   
inline pair<T,U> operator*(const pair<T,U> & l,const pair<T,U> & r) {   
    return {l.fir*r.fir,l.sec*r.sec};                                    
}

template<typename T,typename U>                                                   
inline pair<T,U> operator/(const pair<T,U> & l,const pair<T,U> & r) {   
    return {l.fir/r.fir,l.sec/r.sec};                                    
}

template<typename T> inline void Swap(T *x,T *y){ T tem=*x; *x=*y; *y=tem; }

inline long long int rem(long long int n,long long int m){
	if(!m) return 0;
	return (n<0?(n%m)+m:(n%m));
}

/*
int thre1,thre2;
vi v;

template<typename T> inline bool judge(T n){
	return (thre1<=v[n]&&thre2>=v[n]);
}

template<typename T> inline T BiS(T bottom,T ceiling,bool thretype){
	T upper=ceiling+thretype;
	T lower=bottom-(!thretype);
	while(upper-lower>1){
		T mid=(upper+lower)/2;
		if(judge(mid)) (thretype?lower:upper)=mid;
		else (thretype?upper:lower)=mid;
	}
	return (thretype?lower:upper);
}
*/

/* The main code follows below */

int main(){
	int x,A,B;
	cin>>X>>A>>B;
	cout<<(X-A)%B;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:93:14: error: 'X' was not declared in this scope
   93 |         cin>>X>>A>>B;
      |              ^
Language: C++

#include<stdio.h>

int main(void)
{
   int x, a, b, s;

   scanf("%d%d%d", &x, &a, &b);


   s = x - a;
   s = s % b;

   printf("%d\n", s);

   return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: expected '}' at end of input
   15 |    return 0;
      |             ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <iostream>
using namespace std;
 
int main(){
int A,B,C,X;
 
cin>>A>>B>>C>>X;
int res=0;
for(int a=0; a <= A; ++a){
for(int b=0; b <= B; ++b){
for(int c=0; c <= C; ++c){ 
int total = 500*a +100*b +50*c;
if (total==X) ++res;
} 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:9:26: note: to match this '{'
    9 | for(int a=0; a <= A; ++a){
      |                          ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
long long x,a,b,ans,c;
int main()
{
    cin>>s>>a>>b;
    ans=x-a;
    c=ans/b;
    if(ans%b==0)
        cout<<"0";
    else cout<<x-a-b*c<<endl;
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 's' was not declared in this scope
    6 |     cin>>s>>a>>b;
      |          ^
Language: Java

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Iterator;
import java.util.Collections;
import java.util.Comparator;
import java.util.Random;

class Main{
        public static void main(String args[]){
                Scanner = sc = new Scanner(System.in);
                int X = sc.nextInt();
                int A = sc.nextInt();
                int B = sc.nextInt();
                int C = (X - A) % B ;
                System.out.print(C);
        }
}


Compiler output:
Main.java:12: error: cannot find symbol
                Scanner = sc = new Scanner(System.in);
                ^
  symbol:   variable Scanner
  location: class Main
Main.java:12: error: cannot find symbol
                Scanner = sc = new Scanner(System.in);
                          ^
  symbol:   variable sc
  location: class Main
Main.java:13: error: cannot find symbol
                int X = sc.nextInt();
                        ^
  symbol:   variable sc
  location: class Main
Main.java:14: error: cannot find symbol
                int A = sc.nextInt();
                        ^
  symbol:   variable sc
  location: class Main
Main.java:15: error: cannot find symbol
                int B = sc.nextInt();
                        ^
  symbol:   variable sc
  location: class Main
5 errors
Language: C

#include <stdio.h>
int main(void)
{
   int x,a,b,s;

   scanf("%d%d%d",&x,&a,&b);

   s=(x-a)%b;
   printf("%d\n",s);

   return 0;
}
~

Compiler output:
main.c:13:1: error: expected identifier or '(' before '~' token
   13 | ~
      | ^
Language: C

#include <stdio.h>
int main(void)
{
   int x,a,b;

   scanf("%d%d%d",&x,&a,&b);

   printf("%d\n",(x-a)%b);

   return 0;
}
~

Compiler output:
main.c:12:1: error: expected identifier or '(' before '~' token
   12 | ~
      | ^
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
    int s,a,b;
    cin>>s>>a>>b;
    s-=a;
    cout<<s-floor(s/(double)b)*b;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'floor' was not declared in this scope
   11 |     cout<<s-floor(s/(double)b)*b;
      |             ^~~~~
Language: C++

// ConsoleApplication18.cpp : アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include<algorithm>
#include<vector>
#include<cmath>
#include<iostream>
using namespace std;


int main() 
{
	int A, B, C, D, X, N, M;
	cin >> X >> A >> B;
	cout <<X - A - ((X - A) / B)*B << endl;
    return 0;
}



Compiler output:
a.cc:4:10: fatal error: stdafx.h: No such file or directory
    4 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<conio.h>

int main()
{
    int a,b,x,result;

    printf("Enter the value of x,a and b: ");
    scanf("%d %d %d",&x,&a,&b);

    result=(x-a)%b;

    printf("The result is %d",result);

    return 0;
}

Compiler output:
main.c:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: Java

public class Main {
	public static void main(String[] args){
	      Scanner sc = new Scanner(System.in);
	      int x = sc.nextInt();
	      int a = sc.nextInt();
	      int b = sc.nextInt();
	      int oturi = (x-a) % b;
	      System.out.println(oturi);
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
	      Scanner sc = new Scanner(System.in);
	      ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
	      Scanner sc = new Scanner(System.in);
	                       ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
using namespace std:

int main(){
  int x,a,b;
  cin>>x>>a>>b;
  cout<<(x-a)%b<<endl;
}


Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

#include<iostream>
using namespace std;

int a,b,c;

int main(){
	cin>>a>>b>>c;
	if((a-b)%c!=0) cout<<(a-b)%c;
	cout<<endl
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before 'return'
    9 |         cout<<endl
      |                   ^
      |                   ;
   10 |         return 0;
      |         ~~~~~~