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

#include<bits/stdc++.h>
int a,b,c,ans;
int main(){
    cin>>a>>b>>c;
    int k=a-b;
    for(int i=1;;1++){
        if(ans<c) break;
        ans-=c;
    }
    cout<<ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     cin>>a>>b>>c;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:18: error: lvalue required as increment operand
    6 |     for(int i=1;;1++){
      |                  ^
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<ans;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'return0' was not declared in this scope
    7 |   return0;
      |   ^~~~~~~
Language: C++

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


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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int x,a,b;
  cin>>x>>a>>b;
  int ans = x-a;
  for(true){
    if(ans<b)break;
    ans -= b;
  }
  printf("%d\n",ans);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before ')' token
    7 |   for(true){
      |           ^
      |           ;
a.cc:12:3: error: expected primary-expression before 'return'
   12 |   return 0;
      |   ^~~~~~
a.cc:11:22: error: expected ')' before 'return'
   11 |   printf("%d\n",ans);
      |                      ^
      |                      )
   12 |   return 0;
      |   ~~~~~~              
a.cc:7:6: note: to match this '('
    7 |   for(true){
      |      ^
Language: C++

#include<cstdio>
using namespace std;
int A, B, C;
int X;
1
int solve(){
int ans = 0;
for(int i = 0; i <= A; ++i){
for(int j = 0; j <= B; ++j){
for(int k = 0; k <= C; ++k){
int tmp = i * 500 + j * 100 + k * 50;
if(tmp == X) ans++;
}
}
}
return ans;
}
int main(){
scanf("%d%d%d%d", &A, &B, &C, &X);
int ans = solve();
printf("%d\n", ans);
return 0;
}

Compiler output:
a.cc:5:1: error: expected unqualified-id before numeric constant
    5 | 1
      | ^
a.cc: In function 'int main()':
a.cc:20:11: error: 'solve' was not declared in this scope
   20 | int ans = solve();
      |           ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using Graph=vector<vector<int>>;

int abs(int x){
  int X,A,B;
  cin>>X>>A>>B;
  cout<<(X-A)%B<<endl;
}


Compiler output:
a.cc: In function 'int abs(int)':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   ans = x-a;
      |   ^~~
      |   abs
Language: C++

#include <iostream>
using namespace std;

int main() {
  int A, B, C, X;
  cin >> A >> B >> C >> X;
  int res = 0;
  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:
a.cc: In function 'int main()':
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   for (i = 0; i <= A; ++i) {
      |        ^
a.cc:9:10: error: 'j' was not declared in this scope
    9 |     for (j = 0; j <= B; ++j) {
      |          ^
a.cc:10:12: error: 'k' was not declared in this scope
   10 |       for (k = 0; k <= C; ++k) {
      |            ^
Language: C++

import java.util.Scanner ;

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 -= A;
		int result=0;
		for(int i=0;X-i*B>=0;i++){
			result = X-i*B;
		}
		System.out.println(result);
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner ;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:15: error: expected ':' before 'static'
    4 |         public static void main(String args[]){
      |               ^~~~~~~
      |               :
a.cc:4:33: error: 'String' has not been declared
    4 |         public static void main(String args[]){
      |                                 ^~~~~~
a.cc:16:2: error: expected ';' after class definition
   16 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:17: error: 'Scanner' was not declared in this scope
    5 |                 Scanner sc = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:6:25: error: 'sc' was not declared in this scope
    6 |                 int X = sc.nextInt();
      |                         ^~
a.cc:14:17: error: 'System' was not declared in this scope
   14 |                 System.out.println(result);
      |                 ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin>>x>>a>>b;
      |     ^~~
a.cc:8:13: error: 'b' was not declared in this scope
    8 |     cout<<x/b;
      |             ^
Language: C++

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

namespace ABC055A
{
	class Program
	{
		static void Main(string[] args)
		{
			int a,x,y;
			x = 0;
			a = int.Parse(Console.ReadLine());
			x = 800 * a;
			y = a / 15 * 200;
			Console.WriteLine(x - y);
			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:34: error: 'string' has not been declared
   11 |                 static void Main(string[] args)
      |                                  ^~~~~~
a.cc:11:43: error: expected ',' or '...' before 'args'
   11 |                 static void Main(string[] args)
      |                                           ^~~~
a.cc:21:10: error: expected ';' after class definition
   21 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void ABC055A::Program::Main(int*)':
a.cc:15:29: error: expected primary-expression before 'int'
   15 |                         a = int.Parse(Console.ReadLine());
      |                             ^~~
a.cc:18:25: error: 'Console' was not declared in this scope
   18 |                         Console.WriteLine(x - y);
      |                         ^~~~~~~
Language: C++

A, B, C, X = map(int, [input() for i in  range(4)])
counter = 0
numA=min(X//500, A)
for a in range(0,numA+1):
    numB=min((X-500*a)//100,B)
    for b in range(0, numB+1):
        for c in range(0, C+1):
            if (X-500*a-100*b)-50*c==0:
                counter+=1
                print(a,b,c)
print(counter)

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A, B, C, X = map(int, [input() for i in  range(4)])
      | ^
Language: C++

#include <iostream>
 
using namespace std;
 
int main(){
  int A,B,C,X,sum=0;
  int count = 0;
  cin >> A >> B >> C >> X;
  for (i = 0; i < A; ++i) {
    if (500*i > X) {
      goto END;
    }
    for (j=0; j < B; ++j) {
      if (500*i + 100*j > X) {
        goto END;
      }
      for (k=0; k < C; ++k) {
        if (500*i + 100*j + 50*k == X) {
          ++count;
          break;
        }
      }
    }
  }
END:
	cout << count << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i = 0; i < A; ++i) {
      |        ^
a.cc:13:10: error: 'j' was not declared in this scope
   13 |     for (j=0; j < B; ++j) {
      |          ^
a.cc:17:12: error: 'k' was not declared in this scope
   17 |       for (k=0; k < C; ++k) {
      |            ^
Language: C++

#import<iostream>
main(int x,a,b){std::cin>>x>>a>>b;std::cout<<x-a-b*((x-a)/b);}


Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
a.cc:2:12: error: 'a' has not been declared
    2 | main(int x,a,b){std::cin>>x>>a>>b;std::cout<<x-a-b*((x-a)/b);}
      |            ^
a.cc:2:14: error: 'b' has not been declared
    2 | main(int x,a,b){std::cin>>x>>a>>b;std::cout<<x-a-b*((x-a)/b);}
      |              ^
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(int x,a,b){std::cin>>x>>a>>b;std::cout<<x-a-b*((x-a)/b);}
      | ^~~~
a.cc:2:1: warning: second argument of 'int main(int, int, int)' should be 'char **' [-Wmain]
a.cc:2:1: warning: third argument of 'int main(int, int, int)' should probably be 'char **' [-Wmain]
a.cc: In function 'int main(int, int, int)':
a.cc:2:30: error: 'a' was not declared in this scope
    2 | main(int x,a,b){std::cin>>x>>a>>b;std::cout<<x-a-b*((x-a)/b);}
      |                              ^
a.cc:2:33: error: 'b' was not declared in this scope
    2 | main(int x,a,b){std::cin>>x>>a>>b;std::cout<<x-a-b*((x-a)/b);}
      |                                 ^
Language: C++

#include <iostream>
 
using namespace std;
 
int main(){
  int A,B,C,X,sum=0;
  int count = 0;
  cin >> A >> B >> C >> X;
  for (int i = 0; i < A; ++i) {
    if (500*i > X) {
      goto END;
    }
    for (int j=0; j < B; ++j) {
      if (500*i + 100*j > X) {
        goto END;
      }
      for (int k=0; k < C; ++k) {
        if (500*i + 100*j + 50*k == X) {
          ++count;
          break;
        }
      }
    }
  }
END:
	cout << count << endl;
  return 0
}

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

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

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  
  int x, a, b;
  cin >> x >> a >> b;
  int rest = x - a;
  int donut = cake / b;
  cout << rest - b * donut << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'cake' was not declared in this scope
   11 |   int donut = cake / b;
      |               ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << ans=ans%b << endl;
      |               ~~~~~~^~~~~~~
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main()
{
	int x, a, b, n = 0;
	cin >> x >> a >> b;
	x = x - a;
	for (int i = 0;; i++) {
		{
			x = x - b;
			if (x < 0)
			{
				x = x + b;
				cout << x << endl;
				break;
			}
		}
		return 0;
	}
/*
死のマウス
.　　あり許せん！
　　　∧＿＿∧
　|| （＃｀Д´ ） ||
　|| ( |　 　| | |||
　从| |　 　| |从从
￣) ⊂ノ￣￣!_つ￣て
　フヘ(　　　　ヽヘ(＼

*/

Compiler output:
a.cc: In function 'int main()':
a.cc:21:10: error: expected '}' at end of input
   21 |         }
      |          ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main()
{
	int x, a, b, n = 0;
	cin >> x >> a >> b;
	x = x - a;
	for(int i=0;;i++){
	{
		x = x - b;
		if (x < 0)
		{
			x = x + b;
			cout << x << endl;
			break;
		}
	}
	return 0;
}
/*
死のマウス
.　　あり許せん！
　　　∧＿＿∧
　|| （＃｀Д´ ） ||
　|| ( |　 　| | |||
　从| |　 　| |从从
￣) ⊂ノ￣￣!_つ￣て
　フヘ(　　　　ヽヘ(＼

*/

Compiler output:
a.cc: In function 'int main()':
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++


fn read<T: std::str::FromStr>() -> T {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().parse::<T>().ok().unwrap()
}

fn main() {
    let x: u32 = read();
    let a: u32 = read();
    let b: u32 = read();
    let ans = (x - a) - ((x - a) / b) * b ;
    println!("{}", ans);
}


Compiler output:
a.cc:2:1: error: 'fn' does not name a type
    2 | fn read<T: std::str::FromStr>() -> T {
      | ^~
a.cc:8:1: error: 'fn' does not name a type
    8 | fn main() {
      | ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,,b,c,x,i,j,k,total=0;
  cin>>a>>b>>c>>x;
  for(i=0;i<=a;i++){
    for(j=0;j<=b;j++){
      for(k=0;k<=c;k++){
        if((i*500+j*100+k*50)==x)
          total++;
      }
    }
  }
  cout<<total<<"\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected unqualified-id before ',' token
    4 |   int a,,b,c,x,i,j,k,total=0;
      |         ^
Language: C++

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

int X,A,B;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'sum' was not declared in this scope
   11 |         sum = (X - A)/B;
      |         ^~~
Language: C++

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

int X,A,B,n;

int main () {
	cin >> X >> A >> B;
	(X-A)%B=n;
	cout << n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: lvalue required as left operand of assignment
    8 |         (X-A)%B=n;
      |         ~~~~~^~
Language: C++

#include <bits/stdc++.h>
#include<iostream>
#intclude<string>
#include<algorithm>
using namespace std;

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

}


Compiler output:
a.cc:3:2: error: invalid preprocessing directive #intclude; did you mean #include?
    3 | #intclude<string>
      |  ^~~~~~~~
      |  include
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ALL(v) (v).begin(),(v).end()
#define REP(i,p,n) for(int i=p;i<(int)(n);++i)
#define rep(i,n) REP(i,0,n)
#define SZ(x) ((int)(x).size())
#define debug(x) cerr << #x << ": " << x << '\n'
#define INF 999999999
typedef long long int Int;
typedef pair<int,int> P;
using ll = long long;
using VI = vector<int>;
int main(){
  int x;cin >> x
  int a;cin >> a;
  int b;cin >> b;
  cout << x-a*b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before 'int'
   14 |   int x;cin >> x
      |                 ^
      |                 ;
   15 |   int a;cin >> a;
      |   ~~~            
a.cc:15:16: error: 'a' was not declared in this scope
   15 |   int a;cin >> a;
      |                ^
Language: C++

#include <stdio.h>
#include <math.h>
#include <iostream>
#include<string>
#include<vector>
#include <algorithm>
#define REP(a,b) for (int i = a; i <= (b); i++)
using namespace std;
int main() {
	int a,b,c,d;
	cin >> a >> b>>c;
  d=a-b;
	
		cout << d % c << endl;
	}
}

Compiler output:
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int x,a,b;
    cin>>x>>a>>b;
    x-=a;
    int count=0;
    for (int i=0;;i++){
      if(x-b>0){
      count++;
      continue;
      }
      else{
          break;
      }
     
    }
    x=x-(b*count)
      cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected ';' before 'cout'
   18 |     x=x-(b*count)
      |                  ^
      |                  ;
   19 |       cout<<x<<endl;
      |       ~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    int x,a,b;
    cin>>x>>a>>b;
    x-=a;
    int count=0;
    for (int i=0;;i++){
      if(x-b>0){
      count++;
      continue;
      }
      else{
          break;
      }
      x=x-(b*count)
      cout<<x<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: expected ';' before 'cout'
   16 |       x=x-(b*count)
      |                    ^
      |                    ;
   17 |       cout<<x<<endl;
      |       ~~~~
Language: C++

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

Compiler output:
a.cc:1:10: fatal error: bits/c++.h: No such file or directory
    1 | #include <bits/c++.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

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 ans = x-a;

        while(ans > 0){
            ans -= b;
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:5: error: ';' expected
        Scanner sc = new Scanner(System.in)
                                           ^
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected ';' before ')' token
    7 |   cout << a - ((a - b) / c) * c) << endl;
      |                                ^
      |                                ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> a >> b >> c;
      |     ^~~
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << dounts << endl;
      |     ^~~~
a.cc:18:23: error: 'endl' was not declared in this scope
   18 |     cout << dounts << endl;
      |                       ^~~~
Language: Java

import java.util.*;

public class Buying_sweets{
  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 -= A;
    X = X % B;
    System.out.println(X);
  }
}


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

 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:3:26: error: 'string' has not been declared
    3 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:3:35: error: expected ',' or '...' before 'args'
    3 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:17:6: error: expected ';' after class definition
   17 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:7:17: error: expected primary-expression before 'int'
    7 |             x = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:8:17: error: expected primary-expression before 'int'
    8 |             a = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:9:17: error: expected primary-expression before 'int'
    9 |             b = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:13:13: error: 'Console' was not declared in this scope
   13 |             Console.WriteLine(c);
      |             ^~~~~~~
Language: C++

#include<bits/stdc++.h>
int main(){
  int X,A,B;
  cin>>X>>A>>B;
  int temp = (X-A);
  if(B==temp){
    cout << '0';
  }
  if(B <=temp){
    int k = temp/B;
    int p = k*B;
    cout<<(temp-p);
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>X>>A>>B;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << '0';
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<(temp-p);
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int X,A,B;
  cin>>X>>A>>B;
  int temp = X-A;
  if(B <=temp){
    int k = temp/B;
    int p = k*B;
    cout<<(temp-p);
  }
  if(B==temp){
    std::cout << 0;
  }
  if(B>temp){
    cout<<temp;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
int main(){
  int X,A,B;
  cin>>X>>A>>B;
  int temp = X-A;
  if(B <=temp){
    int k = temp/B;
    int p = k*B;
    cout<<(temp-p);
  }
  if(B==temp){
    std::cout << 0;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>X>>A>>B;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<(temp-p);
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
#include<vector>
#include<numeric>
using namespace std;

int makemax(vector<int> b, int n){
  int ans = b[0];
  for(int i=1; i<n; i++){
    if(ans < b[i]) {
      ans = b[i];
    }
  }
  return ans;
}

vector<int> makeb(int n, vector<int> a1, vector<int>a2){
  vecot<int>b(n);
  for(int i=0; i<n; i++){
    b[i] = accumulate(a1.begin(), a1.begin()+i,0)+accumulate(a2.begin()+i, a2.end(),0);
  }
  return b;
}

int main(){
  int n;
  cin >> n;
  vector<int> a1(n);
  vector<int> a2(n);
  vector<int> b(n);
  for(int i=0; i<n; i++){
    cin >> a1[i];
  }
  for(int i=0; i<n; i++){
    cin >>a2[i];
  }
  b = makeb(n, a1, a2, b);
  int ans = makemax(b, n);
  cout <<ans;
}


Compiler output:
a.cc: In function 'std::vector<int> makeb(int, std::vector<int>, std::vector<int>)':
a.cc:17:3: error: 'vecot' was not declared in this scope
   17 |   vecot<int>b(n);
      |   ^~~~~
a.cc:17:9: error: expected primary-expression before 'int'
   17 |   vecot<int>b(n);
      |         ^~~
a.cc:19:5: error: 'b' was not declared in this scope
   19 |     b[i] = accumulate(a1.begin(), a1.begin()+i,0)+accumulate(a2.begin()+i, a2.end(),0);
      |     ^
a.cc:21:10: error: 'b' was not declared in this scope
   21 |   return b;
      |          ^
a.cc: In function 'int main()':
a.cc:36:12: error: too many arguments to function 'std::vector<int> makeb(int, std::vector<int>, std::vector<int>)'
   36 |   b = makeb(n, a1, a2, b);
      |       ~~~~~^~~~~~~~~~~~~~
a.cc:16:13: note: declared here
   16 | vector<int> makeb(int n, vector<int> a1, vector<int>a2){
      |             ^~~~~
Language: C++

 { 
            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:2: error: expected unqualified-id before '{' token
    1 |  {
      |  ^
a.cc:10:5: error: expected declaration before '}' token
   10 |     }
      |     ^
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
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: C++

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:5:26: error: 'string' has not been declared
    5 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:5:35: error: expected ',' or '...' before 'args'
    5 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:19:6: error: expected ';' after class definition
   19 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC087A::Program::Main(int*)':
a.cc:9:17: error: expected primary-expression before 'int'
    9 |             x = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:10:17: error: expected primary-expression before 'int'
   10 |             a = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:11:17: error: expected primary-expression before 'int'
   11 |             b = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:15:13: error: 'Console' was not declared in this scope
   15 |             Console.WriteLine(c);
      |             ^~~~~~~
Language: C++

 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:3:13: error: 'x' does not name a type
    3 |             x = int.Parse(Console.ReadLine());
      |             ^
a.cc:4:13: error: 'a' does not name a type
    4 |             a = int.Parse(Console.ReadLine());
      |             ^
a.cc:5:13: error: 'b' does not name a type
    5 |             b = int.Parse(Console.ReadLine());
      |             ^
a.cc:7:13: error: 'c' does not name a type
    7 |             c = (x - a) % b;
      |             ^
a.cc:9:13: error: 'Console' does not name a type
    9 |             Console.WriteLine(c);
      |             ^~~~~~~
a.cc:11:13: error: 'Console' does not name a type
   11 |             Console.ReadKey();
      |             ^~~~~~~
Language: C++

 { 
            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:2: error: expected unqualified-id before '{' token
    1 |  {
      |  ^
a.cc:10:5: error: expected declaration before '}' token
   10 |     }
      |     ^
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'X'
    6 |   cin X >> A >> B;
      |      ^~
      |      ;
Language: C

#include<stdio.h>
 
int main(void){
  int a,b,x,j,i=0,count;
  scanf("%d",&x);
  scanf("%d",&a);
  scanf("%d",&b);
  j=x-a;
  while(1){
          j=j-b;
          if(j<b)
            break;
  }
  printf("%d\n",j);
  return 0;
}
#include<stdio.h>

int main(void){
  int a,b,x,j,i=0,count;
  scanf("%d",&x);
  scanf("%d",&a);
  scanf("%d",&b);
  j=x-a;
  while(1){
          j=j-b;
          if(j<b)
            break;
  }
  printf("%d\n",j);
  return 0;
}


Compiler output:
main.c:19:5: error: redefinition of 'main'
   19 | int main(void){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int(void)'
    3 | int main(void){
      |     ^~~~
Language: C

#include<stdio.h>
 
int main(void){
  int a,b,x,j,i=0,count;
  scanf("%d",&x);
  scanf("%d",&a);
  scanf("%d",&b);
  j=x-a;
  while(1){
          j=j-b;
          if(j<b)
            break;
  }
  printf("%d\n",j);
  return 0;
}
#include<stdio.h>

int main(void){
  int a,b,x,j,i=0,count;
  scanf("%d",&x);
  scanf("%d",&a);
  scanf("%d",&b);
  j=x-a;
  while(1){
          j=j-b;
          if(j<b)
            break;
  }
  printf("%d\n",j);
  return 0;
}
提出情報

Compiler output:
main.c:19:5: error: redefinition of 'main'
   19 | int main(void){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int(void)'
    3 | int main(void){
      |     ^~~~
main.c:33:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   33 | 提出情報
      | ^~~~~~~~
Language: C

#include<stdio.h>

int main(void){
  int x,a,b,count=0,n=o;
  
  scanf("%d",&x);
  scanf("%d",&a);
  scanf("%d",&b);
  sum=sum-a;
  while(1){
    sum=sum-b;
    if(sum<x)
       break;
  }

  printf("%d\n",sum);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:23: error: 'o' undeclared (first use in this function)
    4 |   int x,a,b,count=0,n=o;
      |                       ^
main.c:4:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:3: error: 'sum' undeclared (first use in this function)
    9 |   sum=sum-a;
      |   ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:10: error: expected ';' before '}' token
   11 |  return 0
      |          ^
      |          ;
   12 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int x,a,b;
  cin>>x>>a>>b;
  int n = x-a;
  int x = n/b;
  cout << n-(x*b) <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int x'
    7 |   int x = n/b;
      |       ^
a.cc:4:7: note: 'int x' previously declared here
    4 |   int x,a,b;
      |       ^
Language: C++

using System;
using static System.Console;

class Program
{
    public static void Main()
    {
        int x = int.Parse(ReadLine());
        int a = int.Parse(ReadLine());
        int b = int.Parse(ReadLine());
        WriteLine((x-a)%b);
    }
}

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 'static'
    2 | using static System.Console;
      |       ^~~~~~
a.cc:6:11: error: expected ':' before 'static'
    6 |     public static void Main()
      |           ^~~~~~~
      |           :
a.cc:13:2: error: expected ';' after class definition
   13 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:8:17: error: expected primary-expression before 'int'
    8 |         int x = int.Parse(ReadLine());
      |                 ^~~
a.cc:9:17: error: expected primary-expression before 'int'
    9 |         int a = int.Parse(ReadLine());
      |                 ^~~
a.cc:10:17: error: expected primary-expression before 'int'
   10 |         int b = int.Parse(ReadLine());
      |                 ^~~
a.cc:11:9: error: 'WriteLine' was not declared in this scope
   11 |         WriteLine((x-a)%b);
      |         ^~~~~~~~~
Language: Java

// 2019/07/10
// AtCoder Beginner Contest 087 - A

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // Input
        int x = sc.nextInt();
        int a = sc.next();
        int b = sc.nextInt();
        int ans;

        // Calc
       ans = (x - a) % b;
       
       // Output
       System.out.println(ans);
    }
}

Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
        int a = sc.next();
                       ^
1 error
Language: C++

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

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

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main{
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int x,a,b,p;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:5:9: note: to match this '{'
    5 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> x >> a >> b;
      |   ^~~
a.cc:8:3: error: 'p' does not name a type
    8 |   p = (x - a) % b;
      |   ^
a.cc:9:3: error: 'cout' does not name a type
    9 |   cout << p << endl;
      |   ^~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C

#include <stdio.h>
int main(){
  int a,b,c,x,ans=0;
  scanf("%d\n%d\n%d\n%d\n",&a,&b,&c,&x);
  int i,j,k;
  for(i=0;i=<a;i++){
    for(j=0;j=<b;j++){
      for(k=0;k=<c;k++){
        if(x==a*500+b*100+c*50) ans++;
      }
    }
  }
  
  printf("%d\n",ans);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:13: error: expected expression before '<' token
    6 |   for(i=0;i=<a;i++){
      |             ^
main.c:7:15: error: expected expression before '<' token
    7 |     for(j=0;j=<b;j++){
      |               ^
main.c:8:17: error: expected expression before '<' token
    8 |       for(k=0;k=<c;k++){
      |                 ^
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:5:11: error: found ':' in nested-name-specifier, expected '::'
    5 | int  X,A,B:
      |           ^
      |           ::
a.cc:5:10: error: 'B' has not been declared
    5 | int  X,A,B:
      |          ^
a.cc:6:6: error: qualified-id in declaration before '>>' token
    6 |   cin>>X>>A>>B;
      |      ^~
a.cc:7:16: error: 'B' was not declared in this scope
    7 |   cout <<(X-A)%B;
      |                ^
Language: C++

#include <iostream>

using namespace std;

int main(){
  int X, A, B;
  cin >> X >> A >> B;
  
  if(X < A) cout << X;
  else{
    cout (X-A) % B;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (int)'
   11 |     cout (X-A) % B;
      |     ~~~~~^~~~~
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 n,a,b,p1,p2,x;
            var word = Console.ReadLine().Split(' ');
            n = int.Parse(word[0]);
            a = int.Parse(word[1]);
            b = int.Parse(word[2]);
            p1 = (a * n);   p2 = b;
            Console.WriteLine(x);
            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:22:6: error: expected ';' after class definition
   22 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC087A::Program::Main(int*)':
a.cc:14:13: error: 'var' was not declared in this scope
   14 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:15:17: error: expected primary-expression before 'int'
   15 |             n = int.Parse(word[0]);
      |                 ^~~
a.cc:16:17: error: expected primary-expression before 'int'
   16 |             a = int.Parse(word[1]);
      |                 ^~~
a.cc:17:17: error: expected primary-expression before 'int'
   17 |             b = int.Parse(word[2]);
      |                 ^~~
a.cc:19:13: error: 'Console' was not declared in this scope
   19 |             Console.WriteLine(x);
      |             ^~~~~~~
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: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);
      |             ^~~~~~~
a.cc: At global scope:
a.cc:25:6: error: expected '}' at end of input
   25 |     }
      |      ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
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:21:6: error: expected ';' after class definition
   21 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC087A::Program::Main(int*)':
a.cc:14:17: error: expected primary-expression before 'int'
   14 |             x = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:15:17: error: expected primary-expression before 'int'
   15 |             a = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:16:17: error: expected primary-expression before 'int'
   16 |             b = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:18:13: error: 'Console' was not declared in this scope
   18 |             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:22:6: error: expected ';' after class definition
   22 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC087A::Program::Main(int*)':
a.cc:14:17: error: expected primary-expression before 'int'
   14 |             x = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:15:17: error: expected primary-expression before 'int'
   15 |             a = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:16:17: error: expected primary-expression before 'int'
   16 |             b = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:18:13: error: 'Console' was not declared in this scope
   18 |             Console.WriteLine(c);
      |             ^~~~~~~