criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.Scanner;

public class Biscuit {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int numberA=sc.nextInt();
		int numberB=sc.nextInt();
		int T=sc.nextInt();

		int sum=(T/numberA)*numberB;
		System.out.println(sum);

	}

}


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

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int N;
    int sum = 0;
    scanf("%d",&N);
    int *val = (int*)malloc(N*sizeof(int));
    int *cost = (int*)malloc(N*sizeof(int));
    for (int i = 0; i < N; i++) scanf("%d", &val[i]);
    for (int i = 0; i < N; i++) scanf("%d", &cost[i]);
    for (int i = 0; i < N; i++)
    {
        int div = val[i] - cost[i];
        if(div> 0) sum += div;
    }
    pirntf("%d",sum);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:5: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |     pirntf("%d",sum);
      |     ^~~~~~
      |     printf
Language: Java

import java.util.*;

public class TaskA {
  
  private int A, B, T;
  
  public MyClass(String a, String b, String c) {
    this.A = Integer.parseInt(a);
    this.B = Integer.parseInt(b);
    this.T = Integer.parseInt(c);
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    TaskA obj = new TaskA(args[0], args[1], args[2]);
    obj.getBuiscit();
    
  }
}


Compiler output:
Main.java:7: error: invalid method declaration; return type required
  public MyClass(String a, String b, String c) {
         ^
1 error
Language: C

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int N;
    int sum = 0;
    scanf("%d",&N);
    int *val = (int*)malloc(N*sizeof(int));
    int *cost = (int*)malloc(N*sizeof(int));
    for (int i = 0; i < N; i++) scanf("%d", &val[i]);
    for (int i = 0; i < N; i++) scanf("%d", &cost[i]);
    for (int i = 0; i < N; i++)
    {
        int div = val[i] - cost[i];
        if(div> 0) sum += div;
    }
    pirnt("%d",sum);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:5: error: implicit declaration of function 'pirnt'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |     pirnt("%d",sum);
      |     ^~~~~
      |     printf
Language: Java

import java.util.Scanner;
public class Resale {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int count = 0;
		int[] line = new int[2];
		while(sc.hasNext()){
		int i = sc.nextInt();
		line[count] = i;
		count++;
		}
		for(int )
		System.out.println(line[s]);
	}

}


Compiler output:
Main.java:13: error: not a statement
		for(int )
		    ^
Main.java:13: error: ';' expected
		for(int )
		       ^
Main.java:13: error: illegal start of expression
		for(int )
		        ^
3 errors
Language: Java

import java.util.*;

public class TaskA {
  
  private int A, B, T;
  
  public MyClass(String a, String b, String c) {
    this.A = Integer.parseInt(a);
    this.B = Integer.parseInt(b);
    this.T = Integer.parseInt(c);
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    MyClass obj = new MyClass(args[0], args[1], args[2]);
    obj.getBuiscit();
    
  }
}


Compiler output:
Main.java:7: error: invalid method declaration; return type required
  public MyClass(String a, String b, String c) {
         ^
1 error
Language: C++

#include<iostream>

using namespace std;

int main()
{
	int A, B, T;
	cin >> A >> B >> T;
	cout << B *( (T + 0.5) / A-(T+0.5)%A);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:43: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |         cout << B *( (T + 0.5) / A-(T+0.5)%A);
      |                                    ~~~~~~~^~
      |                                      |     |
      |                                      |     int
      |                                      double
Language: C

#include<stdio.h>
 
int main(void)
{
  int a,b,t,f,d;
  double time;
  scanf("%d%d%d",%a,&b,&t);
  
  time = t + 0.5;
  f = time / a;
  d = f * b;
  printf("%d",d);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected expression before '%' token
    7 |   scanf("%d%d%d",%a,&b,&t);
      |                  ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b,c;
  float T;
  cin >> a;
  cin >> b;
  cin >> T;
  c = (T+0.5)/a;
  ans = c*b;
  cout << ans;
}

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

#include<stdio.h>
 int main(void)
    int a,b,t;
	int i,c;
 scanf("%d%d%d",&a,&b,&t)
   for(i=a;i<t;i+a){
        c=b+0;
}
printf("%d",c);
	return 0;


Compiler output:
main.c: In function 'main':
main.c:5:2: error: expected declaration specifiers before 'scanf'
    5 |  scanf("%d%d%d",&a,&b,&t)
      |  ^~~~~
main.c:6:12: error: expected declaration specifiers before 'i'
    6 |    for(i=a;i<t;i+a){
      |            ^
main.c:6:16: error: expected declaration specifiers before 'i'
    6 |    for(i=a;i<t;i+a){
      |                ^
main.c:9:1: error: expected declaration specifiers before 'printf'
    9 | printf("%d",c);
      | ^~~~~~
main.c:10:9: error: expected declaration specifiers before 'return'
   10 |         return 0;
      |         ^~~~~~
main.c:2:6: error: old-style parameter declarations in prototyped function definition
    2 |  int main(void)
      |      ^~~~
main.c:11: error: expected '{' at end of input
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int t = sc.nextInt();

		double v = t + 0.5;

		int p = 0;
		p = (int)v / a;
		int r = 0;
		r = (int)p * b;

		System.out.println(r);


Compiler output:
Main.java:19: error: reached end of file while parsing
		System.out.println(r);
		                      ^
1 error
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int N;
	cin >> N;
	int c = 0;
	for (int i = 0; i < N; i++) {
		int a[i];
		cin >> a[i];
	}
	for (int i = 0; i < N; i++) {
		int b[i];
		cin >> b[i];
	}
	if (a[i] > b[i]) {
		c += (a[i] - b[i]);
	}
	cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'a' was not declared in this scope
   17 |         if (a[i] > b[i]) {
      |             ^
a.cc:17:15: error: 'i' was not declared in this scope
   17 |         if (a[i] > b[i]) {
      |               ^
a.cc:17:20: error: 'b' was not declared in this scope
   17 |         if (a[i] > b[i]) {
      |                    ^
Language: C

#include<stdio.h>
 int main(void)
    int a,b,t;
	int i,c;
 scanf("%d%d%d",&a,&b,&t)
   for(i=a;i<t;i+a){
        c=b+0;
}
	return 0;


Compiler output:
main.c: In function 'main':
main.c:5:2: error: expected declaration specifiers before 'scanf'
    5 |  scanf("%d%d%d",&a,&b,&t)
      |  ^~~~~
main.c:6:12: error: expected declaration specifiers before 'i'
    6 |    for(i=a;i<t;i+a){
      |            ^
main.c:6:16: error: expected declaration specifiers before 'i'
    6 |    for(i=a;i<t;i+a){
      |                ^
main.c:9:9: error: expected declaration specifiers before 'return'
    9 |         return 0;
      |         ^~~~~~
main.c:2:6: error: old-style parameter declarations in prototyped function definition
    2 |  int main(void)
      |      ^~~~
main.c:10: error: expected '{' at end of input
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B,T;
  cin >> A >> B >> T;
  double x = (T+0.5)/A;
  int y = x
  cout << y *B<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cout'
    9 |   cout << y *B<< endl;
      |   ^~~~
Language: C++

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

#define int long long

int gcd(int m, int n){
    int tmp;
    if(m < n){
        tmp = n;
        n = m;
        m = tmp;
    }

    while(1){
        if(n == 0) return m;
        tmp = m % n;
        m = n;
        n = tmp;
    }
}

signed main(){
    int n;
    cin >> n;

    int a[100010];
    for(int i = 0;i < n;i++){
        cin >> a[i];
    }

    int ans = a[0];
    int tmp = 0;

    for(int i = 1;i < n;i++){
        int g = gcd(ans, a[i]);
        if(g < ans){
            ans = g;
            tmp = i;
        }
    }

    int ans1 = a[0];

    int ans2 = a[0];
    int ans3 = a[1];

    for(int i = 0;i < n;i++){

        if(tmp != i){
            ans1 = gcd(ans1, a[i]);
        }

        if(i != 1){
            ans2 = gcd(ans2, a[i]);
        }

        if(i != 0){
            ans3 = gcd(ans3, a[i]);
        }
    }


    cout << max(max(ans１, ans3), ans2) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:63:21: error: 'ans\U0000ff11' was not declared in this scope
   63 |     cout << max(max(ans１, ans3), ans2) << endl;
      |                     ^~~~~
Language: C

#include <stdio.h>
int main(int a,int b,int c){
  int sum = c/a*b;
  printf("%d",sum)
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:19: error: expected ';' before 'return'
    4 |   printf("%d",sum)
      |                   ^
      |                   ;
    5 |   return 0;
      |   ~~~~~~
Language: C

#include<stdio.h>
int main ()
{
  int time=0;
  int biscuit=0;
  int timelimit=0;
  int b_cnt=0;
  scanf("%d%d%d",&time,&biscuit,&timelimit);
  for(i=1;i*time+1.5;i++)
  {
    b_cnt+=biscuit;
  }
  printf("%d",b_cnt);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:7: error: 'i' undeclared (first use in this function)
    9 |   for(i=1;i*time+1.5;i++)
      |       ^
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main ()
{
  int time=0;
  int biscuit=0;
  int timelimit=0;
  int b_cnt=0;
  scanf("%d%d%d",&time,&biscuit,&timelimit);
  for(i=1;i*time+0.5;i++)
  {
    b_cnt+=biscuit;
  }
  printf("%d",b_cnt);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:7: error: 'i' undeclared (first use in this function)
    9 |   for(i=1;i*time+0.5;i++)
      |       ^
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   cout<<((T/A)*B<<endl;
      |          ~~~~~~~^~~~~~
a.cc:6:23: error: expected ')' before ';' token
    6 |   cout<<((T/A)*B<<endl;
      |         ~             ^
      |                       )
Language: Java

public class MyClass {
  
  private int A, B, T;
  
  public MyClass(String a, String b, String c) {
    this.A = Integer.parseInt(a);
    this.B = Integer.parseInt(b);
    this.T = Integer.parseInt(c);
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    MyClass obj = new MyClass(args[0], args[1], args[2]);
    obj.getBuiscit();
    
  }
}


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

#include<stdio.h>

main()
{
  double a,b,c;
  printf("数値を入力してください"\n);
  scanf("%lf,%lf,%lf",&a,&b,&c);
  double d:
  d=c/a*b;
  printf("%lf\n",d);
  return 0;
}
  

Compiler output:
a.cc:6:34: error: stray '\' in program
    6 |   printf("数値を入力してください"\n);
      |                                  ^
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:34: error: expected ')' before 'n'
    6 |   printf("数値を入力してください"\n);
      |         ~                        ^~
      |                                  )
a.cc:8:11: error: found ':' in nested-name-specifier, expected '::'
    8 |   double d:
      |           ^
      |           ::
a.cc:8:10: error: 'd' has not been declared
    8 |   double d:
      |          ^
a.cc:9:4: error: qualified-id in declaration before '=' token
    9 |   d=c/a*b;
      |    ^
a.cc:10:18: error: 'd' was not declared in this scope
   10 |   printf("%lf\n",d);
      |                  ^
Language: C++

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

int main() {
  int A, B, T; cin >> A >> B >> T;
  int sum = 0;
  sum = B * ( T / A );
  cout << sun << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'sun' was not declared in this scope; did you mean 'sum'?
    8 |   cout << sun << endl;
      |           ^~~
      |           sum
Language: Java

public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int T = sc.nextInt();

        int cntBiscuit = 0;

        int time = 0;

        for(int i = 1 ; time < T ; i++) {
        	time = A * i;

        	cntBiscuit += B;
        }

        System.out.println(String.valueOf(cntBiscuit));
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include<bits/stdc++>
using namespace std;
int main(){
  int a,b,t;
  cin >> a >> b >> t;
  int now = 0;
  int i = 1;
  now = i*a;
  while(now < t){
    i++;
    now = i*a;
  }
  cout << i*b << endl;
}

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

public class MyClass {
  
  private int A, B, T;
  
  public MyClass(int a, int b, int c) {
    this.A = a;
    this.B = b;
    this.T = c;
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    MyClass obj = new MyClass(args[0], args[1], args[2]);
    obj.getBuiscit();
    
  }
}


Compiler output:
Main.java:1: error: class MyClass is public, should be declared in a file named MyClass.java
public class MyClass {
       ^
Main.java:17: error: incompatible types: String cannot be converted to int
    MyClass obj = new MyClass(args[0], args[1], args[2]);
                                  ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: C

#include <stdio.h>
#include <stdlib.h>

int caluc(int a, int b, int t){
    int y;
    y = (double)b * ((double)t+0.5)/(double)a);
    return y;
}

int main(int argc, char *argv[])
{
    int a, b, t;
    int y;

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

    y = caluc(a,b,t);

    printf("%d", y);

    return 0;
}


Compiler output:
main.c: In function 'caluc':
main.c:6:46: error: expected ';' before ')' token
    6 |     y = (double)b * ((double)t+0.5)/(double)a);
      |                                              ^
      |                                              ;
main.c:6:46: error: expected statement before ')' token
Language: C++

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

int main () {
	long long A;
	long long B;
	long long T;
	cin >> A;
	cin >> B;
	cin >> T;
    long long R;
    R=T%A
    T=T-R;
    if ( T > A ) {
    	cout << ((T/A)*B) <<endl;
    } 
    else {
    	cout << 0 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected ';' before 'T'
   12 |     R=T%A
      |          ^
      |          ;
   13 |     T=T-R;
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: lvalue required as left operand of assignment
    7 |   t/a = s;
      |   ~^~
Language: C++

#include <iostream>
using namespace std;

int main() {
    int a, b, t;
    cin >> a >> b >> t;
    cout << ((t+0.5)%a)*b << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    7 |     cout << ((t+0.5)%a)*b << endl;
      |              ~~~~~~~^~
      |                |     |
      |                |     int
      |                double
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: lvalue required as left operand of assignment
    7 |   t/a=s;
      |   ~^~
Language: Java

public class MyClass {
  
  private int A, B, T;
  
  public MyClass(int a, int b, int c) {
    this.A = a;
    this.B = b;
    this.T = c;
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    MyClass obj = new MyClass(args[0], args[1], args[2]);
    obj.getBuiscit();
    
  }
}

Compiler output:
Main.java:1: error: class MyClass is public, should be declared in a file named MyClass.java
public class MyClass {
       ^
Main.java:17: error: incompatible types: String cannot be converted to int
    MyClass obj = new MyClass(args[0], args[1], args[2]);
                                  ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: C++

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

int main(){
  int A, B, T;
  cin >> A >> B >> T;
  
  int c = T / A;
  cout << c * B　<< endl;
}

Compiler output:
a.cc:9:15: error: extended character 　 is not valid in an identifier
    9 |   cout << c * B　<< endl;
      |               ^
a.cc: In function 'int main()':
a.cc:9:15: error: 'B\U00003000' was not declared in this scope
    9 |   cout << c * B　<< endl;
      |               ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A,B,T;
  cin >> A >> B >> T;
  int cnt = 0;
  int t = 0;
  t += A;
  while(t < T+0.5){
    t += A;
    cnt += B
  }
  cout << cnt << endl;
}

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

i=0
for val in `dd 2> /dev/null`; do
    array[$i]=$val
    i=$((i+1))
done
echo $((array[2]/array[0]*array[1]))



Compiler output:
a.cc:2:12: error: stray '`' in program
    2 | for val in `dd 2> /dev/null`; do
      |            ^
a.cc:2:28: error: stray '`' in program
    2 | for val in `dd 2> /dev/null`; do
      |                            ^
a.cc:1:1: error: 'i' does not name a type
    1 | i=0
      | ^
a.cc:2:31: error: expected unqualified-id before 'do'
    2 | for val in `dd 2> /dev/null`; do
      |                               ^~
Language: Java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package atcoder;

import java.util.Scanner;

/**
 *
 * @author kchpc
 */
public class AtCoder {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Main atc = new Main();
        
        System.out.println(atc.questionA());
    }
    
    public int questionA(){
        Scanner scan =new Scanner(System.in);
        String input = scan.nextLine();
        
        String[] point = input.split(" ");
        int kankaku = Integer.parseInt(point[0]);
        int maisu = Integer.parseInt(point[1]);
        int time = Integer.parseInt(point[2]);
        return (time / kankaku) * maisu;
    }
    
}


Compiler output:
Main.java:14: error: class AtCoder is public, should be declared in a file named AtCoder.java
public class AtCoder {
       ^
Main.java:21: error: cannot find symbol
        Main atc = new Main();
        ^
  symbol:   class Main
  location: class AtCoder
Main.java:21: error: cannot find symbol
        Main atc = new Main();
                       ^
  symbol:   class Main
  location: class AtCoder
3 errors
Language: C++

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

int main() {
  int A,B,T,sum=0;
  
  cin>>A>>B>>T;
  while(A<double T+0.5){
  sum+=B;
  A=A+A;
  }
  cout<<sum<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before 'double'
    8 |   while(A<double T+0.5){
      |           ^~~~~~
a.cc:8:11: error: expected ')' before 'double'
    8 |   while(A<double T+0.5){
      |        ~  ^~~~~~
      |           )
a.cc:8:19: error: expected initializer before '+' token
    8 |   while(A<double T+0.5){
      |                   ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a,b,t,s=0;
  cin>>a>>b>>t;
  if(a>t){s=0}
  else{
  for (int i=a;i<t;i+=a)
  {
    s+=b;
  }
  }
  cout<<s;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before '}' token
    7 |   if(a>t){s=0}
      |              ^
      |              ;
Language: C

#include <iostream>
using namespace std;

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

	int ans = 0;
	for (int i = a; i < t + 0.5; i+=a) {
		ans += b;
	}

	cout << ans << endl;
	return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
import java.util.Scanner;

/**
 *
 * @author kchpc
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        AtCoder atc = new AtCoder();
        
        System.out.println(atc.questionA());
    }
    
    public int questionA(){
        Scanner scan =new Scanner(System.in);
        String input = scan.nextLine();
        
        String[] point = input.split(" ");
        int kankaku = Integer.parseInt(point[0]);
        int maisu = Integer.parseInt(point[1]);
        int time = Integer.parseInt(point[2]);
        return (time / kankaku) * maisu;
    }
    
}


Compiler output:
Main.java:19: error: cannot find symbol
        AtCoder atc = new AtCoder();
        ^
  symbol:   class AtCoder
  location: class Main
Main.java:19: error: cannot find symbol
        AtCoder atc = new AtCoder();
                          ^
  symbol:   class AtCoder
  location: class Main
2 errors
Language: C++

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

int main() {
    int A,B,T;
    cin>>A>>B>>T;
    cout<<(int((T+0.5)/A)*B)<<endl;
    return 0;
}


Compiler output:
a.cc:1:11: 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 A, B, T; //　回転　個数　時間
  cin >> A >> B >> T;
  
  int c = T / A; //作る回数
  cout << c * B　<< endl;
}

Compiler output:
a.cc:9:15: error: extended character 　 is not valid in an identifier
    9 |   cout << c * B　<< endl;
      |               ^
a.cc: In function 'int main()':
a.cc:9:15: error: 'B\U00003000' was not declared in this scope
    9 |   cout << c * B　<< endl;
      |               ^~~
Language: C++

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

int main() {
  
  cin >>A >>B >>T;
  
  cout << (T+0.5)/A*B << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B,T;
  cin >> A >> B >> T >>;
  int t =T + 0.5;
  cout << t*B/A << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected primary-expression before ';' token
    6 |   cin >> A >> B >> T >>;
      |                        ^
Language: C++

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

int main(){
  int A, B, T;
  cin >> A >> B >> T;
  cout << B*(T+0.5)/A << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected '}' at end of input
    7 |   cout << B*(T+0.5)/A << endl;
      |                               ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,t;
    scanf("%d %d %d",&a,&b,&t);
    int c=(t3 5 7+0.5)/a;
    printf("%d\n",b*c);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 't3' was not declared in this scope; did you mean 't'?
    7 |     int c=(t3 5 7+0.5)/a;
      |            ^~
      |            t
a.cc:7:14: error: expected ')' before numeric constant
    7 |     int c=(t3 5 7+0.5)/a;
      |           ~  ^~
      |              )
Language: C++

#include <iostream>
#include <math.h>
using namespace std;

int main(){
  int a,b,c;
  cin >>a >>b >> c;
  cout << floor(((double)(T)+0.5)/A)*B << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'T' was not declared in this scope
    8 |   cout << floor(((double)(T)+0.5)/A)*B << endl;
      |                           ^
a.cc:8:35: error: 'A' was not declared in this scope
    8 |   cout << floor(((double)(T)+0.5)/A)*B << endl;
      |                                   ^
a.cc:8:38: error: 'B' was not declared in this scope
    8 |   cout << floor(((double)(T)+0.5)/A)*B << endl;
      |                                      ^
Language: Java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package atcoder;

import java.util.Scanner;

/**
 *
 * @author kchpc
 */
public class AtCoder {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        AtCoder atc = new AtCoder();
        
        System.out.println(atc.questionA());
    }
    
    public int questionA(){
        Scanner scan =new Scanner(System.in);
        String input = scan.nextLine();
        
        String[] point = input.split(" ");
        int kankaku = Integer.parseInt(point[0]);
        int maisu = Integer.parseInt(point[1]);
        int time = Integer.parseInt(point[2]);
        return (time / kankaku) * maisu;
    }
    
}


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

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		int T = sc.nextInt();
		
		int times = T/A;
		int ans = 0;
		for(int i = 1; i <= times; i++){
			ans += B;
		}
		
		System.out.println(ans);
	}
}

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 <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B,T;
  cin >> A >> B >> T >>;
  int t =T + 0.5;
  cout << (T+0.5)*B/A << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected primary-expression before ';' token
    6 |   cin >> A >> B >> T >>;
      |                        ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a, b, t, ans;
    cin >> a >> b >> t;

    for(int i = 0; i * a =< t; i++){
        ans += b;
    }

    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected primary-expression before '<' token
    8 |     for(int i = 0; i * a =< t; i++){
      |                           ^
Language: Java


public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner scanner = new Scanner(System.in);
		
		String inputS = scanner.nextLine();

		scanner.close();
		
		String[] split = inputS.split(" ");
		Integer inA = Integer.parseInt(split[0]);
		Integer inB = Integer.parseInt(split[1]);
		Integer inC = Integer.parseInt(split[2]);
		
		int result = 0;
		for(int c = 0; c < 20; c++) {
			int time = c + 1;
			
			if(time > inC) {
				break;
			}

			if(time % inA == 0) {
				result += inB;
			}
			
			
		}
		System.out.println(result);
	}
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,t;
    cin>>a>>b>>t;
    int c=(t3+0.5)/a;
    cout<<b*c<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 't3' was not declared in this scope; did you mean 't'?
    7 |     int c=(t3+0.5)/a;
      |            ^~
      |            t
Language: C

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

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(){
      |                    ^~~
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%d%d%d",&a,&b,&c);
      |       ^~~~~~~~
main.c:4:16: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d%d%d",&a,&b,&c);
      |                ^
main.c:4:19: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d%d%d",&a,&b,&c);
      |                   ^
main.c:4:22: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d%d%d",&a,&b,&c);
      |                      ^
main.c:5:9: warning: data definition has no type or storage class
    5 |         d=c+0.5;
      |         ^
main.c:5:9: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
main.c:5:11: error: initializer element is not constant
    5 |         d=c+0.5;
      |           ^
main.c:6:16: error: expected declaration specifiers or '...' before string constant
    6 |         printf("%d",d/c*b);
      |                ^~~~
main.c:6:21: error: expected declaration specifiers or '...' before 'd'
    6 |         printf("%d",d/c*b);
      |                     ^
main.c:8:1: error: expected identifier or '(' before 'return'
    8 | return 0;}
      | ^~~~~~
main.c:8:10: error: expected identifier or '(' before '}' token
    8 | return 0;}
      |          ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int A,B,T,c;
    cin>>A>>B>>T;
    c=(T+0.5)/A
    cout<<c*B<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'cout'
    7 |     c=(T+0.5)/A
      |                ^
      |                ;
    8 |     cout<<c*B<<endl;
      |     ~~~~
Language: C++

#include＜iostream＞

int main（）｛
    double a,b,t,;    
    cin ＞＞ a ＞＞ b ＞＞ t;
    while(a ＜＝ t+0.5)｛
      b = b+b;
      a = a+a;
    ｝
    cout ＜＜ b ＜＜ endl;
｝

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #include\U0000ff1ciostream\U0000ff1e
    1 | #include＜iostream＞
      |  ^~~~~~~~~~~~~~~~~~~
a.cc:4:5: error: expected initializer before 'double'
    4 |     double a,b,t,;
      |     ^~~~~~
a.cc:5:5: error: 'cin' does not name a type
    5 |     cin ＞＞ a ＞＞ b ＞＞ t;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'while'
    6 |     while(a ＜＝ t+0.5)｛
      |     ^~~~~
a.cc:8:7: error: 'a' does not name a type
    8 |       a = a+a;
      |       ^
a.cc:9:5: error: '\U0000ff5d' does not name a type
    9 |     ｝
      |     ^~
a.cc:11:1: error: '\U0000ff5d' does not name a type
   11 | ｝
      | ^~
Language: Java

import java.util.Scanner;

public class main {


public static void main(String[] args) {

			Scanner sc = new Scanner(System.in);

			int A = sc.nextInt();
			int B = sc.nextInt();
			int T = sc.nextInt();

			int count = 0;

			if( A > T ) {
				count = 0;
				System.out.println(count);
			}
			if( A == T ) {
				count = B;
				System.out.println(count);
			}
			if( A < T ){
				count = B * (T / A);
				System.out.println(count);
			}
		}

	}

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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

int maint()
{
    int A, B, T;
    int ans = 0;
    scanf("%d %d %d", &A, &B, &T);
    ans = (T/A) * B;
    printf("%d\n",ans);
    return 0;
}


Compiler output:
/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: Java

public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner scanner = new Scanner(System.in);
		
		String inputS = scanner.nextLine();

		scanner.close();
		
		String[] split = inputS.split(" ");
		Integer inA = Integer.parseInt(split[0]);
		Integer inB = Integer.parseInt(split[1]);
		Integer inC = Integer.parseInt(split[2]);
		
		int result = 0;
		for(int c = 0; c < 20; c++) {
			int time = c + 1;
			
			if(time % inA == 0) {
				result += inB;
			}
			
			if(time > inC) {
				break;
			}
			
		}
		System.out.println(result);
	}
}

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

#include <stdio.h> int main(){
	
int a,b,c,d;
scanf("%d%d%d",&a,&b,&c);
	d=c+0.5;
	printf("%d",d/c*3);
	
return 0;}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(){
      |                    ^~~
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%d%d%d",&a,&b,&c);
      |       ^~~~~~~~
main.c:4:16: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d%d%d",&a,&b,&c);
      |                ^
main.c:4:19: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d%d%d",&a,&b,&c);
      |                   ^
main.c:4:22: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d%d%d",&a,&b,&c);
      |                      ^
main.c:5:9: warning: data definition has no type or storage class
    5 |         d=c+0.5;
      |         ^
main.c:5:9: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
main.c:5:11: error: initializer element is not constant
    5 |         d=c+0.5;
      |           ^
main.c:6:16: error: expected declaration specifiers or '...' before string constant
    6 |         printf("%d",d/c*3);
      |                ^~~~
main.c:6:21: error: expected declaration specifiers or '...' before 'd'
    6 |         printf("%d",d/c*3);
      |                     ^
main.c:8:1: error: expected identifier or '(' before 'return'
    8 | return 0;}
      | ^~~~~~
main.c:8:10: error: expected identifier or '(' before '}' token
    8 | return 0;}
      |          ^
Language: C

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a, b, t;
    int y;

    scanf("%d %d %d", &a, &b, &t);
    caluc(a,b,t);
    printf("%d", y)

    return 0;
}

int caluc(int a, int b, int t){
    int y;
    y = b * (((double)t+0.5)/a)
    return y;
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'caluc'; did you mean 'calloc'? [-Wimplicit-function-declaration]
   10 |     caluc(a,b,t);
      |     ^~~~~
      |     calloc
main.c:11:20: error: expected ';' before 'return'
   11 |     printf("%d", y)
      |                    ^
      |                    ;
   12 | 
   13 |     return 0;
      |     ~~~~~~          
main.c: In function 'caluc':
main.c:18:32: error: expected ';' before 'return'
   18 |     y = b * (((double)t+0.5)/a)
      |                                ^
      |                                ;
   19 |     return y;
      |     ~~~~~~
Language: C++

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

int main () {
	int A;
	int B;
	int T;
	cin >> A;
	cin >> B;
	cin >> T;
    
    if ( T > A ) {
    	cout << (T//A)*B <<endl;
    } 
    else {
    	cout << 0 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected ')' before '}' token
   13 |         cout << (T//A)*B <<endl;
      |                 ~ ^
      |                   )
   14 |     }
      |     ~              
a.cc:13:19: error: expected ';' before '}' token
   13 |         cout << (T//A)*B <<endl;
      |                   ^
      |                   ;
   14 |     }
      |     ~
Language: C++

#include＜iostream＞

int main()｛
    double a,b,t,;    
    cin ＞＞ a ＞＞ b ＞＞ t;
    while(a ＜＝ t+0.5)｛
      b = b+b;
      a = a+a;
    ｝
    cout ＜＜ b ＜＜ endl;
｝

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #include\U0000ff1ciostream\U0000ff1e
    1 | #include＜iostream＞
      |  ^~~~~~~~~~~~~~~~~~~
a.cc:3:11: error: expected initializer before '\U0000ff5b'
    3 | int main()｛
      |           ^~
a.cc:5:5: error: 'cin' does not name a type
    5 |     cin ＞＞ a ＞＞ b ＞＞ t;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'while'
    6 |     while(a ＜＝ t+0.5)｛
      |     ^~~~~
a.cc:8:7: error: 'a' does not name a type
    8 |       a = a+a;
      |       ^
a.cc:9:5: error: '\U0000ff5d' does not name a type
    9 |     ｝
      |     ^~
a.cc:11:1: error: '\U0000ff5d' does not name a type
   11 | ｝
      | ^~
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a>> b>>t;
      |   ^~~
      |   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:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << ans << 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:12:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

import numpy as np

if __name__ == "__main__":
    a, b, t = map(int, input().split())
    print(b * (t // a))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import numpy as np
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
#include<vector>
#include<string>

using namespace std;

int main(void)
{
	int a, b, t;
	cin >> a >> b >> t;
	cout << floor(t / a) * b << endl;
	return 0;
}

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

#include<stdio.h>

int main() {
  int a;
  int b;
  int t;
  int result;
  
  scanf("%d %d %d", &a, &b, &t);
  
  result = (int)(((float)t + 0.5) / (float)a) * b;
  print("%d", result);
}

Compiler output:
main.c: In function 'main':
main.c:12:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |   print("%d", result);
      |   ^~~~~
      |   printf
Language: C++

A,B,T=map(int,input().split())
t=T+0.5
count=0
t=int(t)
for i in range(1,T):
    if A*i<=t:
        count+=B    
    
print(count)

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A,B,T=map(int,input().split())
      | ^
Language: C++

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

int main() {
  int A, B, T;
  cin >> A >> B >> T;
  int sum = (T + 0.5)/A
    int W = sum*B
    cout << W << endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'int'
    8 |     int W = sum*B
      |     ^~~
Language: C++

#include<iostream>
using namespace std;

int mainU(){
  int a, b, t;
  cin >> a >> b >> t;
  cout << t/a*b;
  return 0;
}

Compiler output:
/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<stdio.h>
int main(){
  int b;
  float a,s;
  scanf("%fs%d%f",&a,&b,&t);
  t=t/a;
  int ans=0;
  ans=b*t;
  printf("%d\n",ans);
}

Compiler output:
main.c: In function 'main':
main.c:5:26: error: 't' undeclared (first use in this function)
    5 |   scanf("%fs%d%f",&a,&b,&t);
      |                          ^
main.c:5:26: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;
import java.util.InputMismatchException;

class Main {
   public static void main(String args[]) {
      int x=0 ,y=0, z=0;
      int sum = 0;
      try {
         Scanner scanner = new Scanner(System.in);
         x = scanner.nextInt();
         y = scanner.nextInt();
         z = scanner.nextInt();
         scanner.close();
      } catch (InputMismatchException e) {
         System.out.println("error");
      }
      for (i=1; i<z+1; i=i+1) {
         sum = sum+y;
      }
      System.out.println(sum);
   }
}

Compiler output:
Main.java:17: error: cannot find symbol
      for (i=1; i<z+1; i=i+1) {
           ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      for (i=1; i<z+1; i=i+1) {
                ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      for (i=1; i<z+1; i=i+1) {
                       ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      for (i=1; i<z+1; i=i+1) {
                         ^
  symbol:   variable i
  location: class Main
4 errors
Language: C++

#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <utility>
#include <math.h>
#include <stdexcept>
#include <algorithm>
#include <vector>
#include <cstring>
#include <cassert>
#include <string.h>

using namespace std;
#define  rep(i,n) for(int i=0;i<n;i++)
#define  rrep(i,n) for(int i=n;i>0;i--)
#define  REP(i,a,b) for(int i=a;i<b;i++)
typedef long long int lld;
typedef vector<lld> vl;
typedef vector<int> vi;
typedef vector<string> vs;



//int arr[N]
////sort(arr,arr +N)

//vector <int> hoge
////sort(hoge.begin(),hoge.end());
///min_element(hoge.begin(),hoge.end();　最小値　　　最大値はmax_element();

int main() {

	int a,b,ans;
ans;
	cin>>a>>b>>c;
 
ans=  (c/a)*b;


cout<<ans ;
}


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

#include <iostream>

int main(){
  std::cin.tie(nullptr);std::ios::sync_with_stdio(false);
  int A,B,T;std::cin>>A>>B>>T;
  int ans=()(T+0.5)/A*B;
  std::cout<<ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before ')' token
    6 |   int ans=()(T+0.5)/A*B;
      |            ^
Language: C++

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

int main() {
  int A, B, T;
  cin >> A >> B >> T;
  int sum = (T + 0.5)/A
    int W = sum*B
    cout << B << endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'int'
    8 |     int W = sum*B
      |     ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a,b
  double  t;
  cin>>a>>b>>t;
  int c=(t+0.5)/a;
  cout<<c*b<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'double'
    6 |   double  t;
      |   ^~~~~~
a.cc:7:11: error: 'b' was not declared in this scope
    7 |   cin>>a>>b>>t;
      |           ^
a.cc:7:14: error: 't' was not declared in this scope
    7 |   cin>>a>>b>>t;
      |              ^
Language: C

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
using namespace std;
typedef long long ll;
int INF = (1LL << 30) - 1;
int MOD = 1e9+7;
main(){
    int A,B,T;
    cin >> A >> B >> T;
    cout << B * (T/A)<< endl;
}

Compiler output:
main.c: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>

signed main() {
    long long a, b, t;
    cin >> a >> b >> t;
    long long ans = 0;
    for (int i = 1; i <= t; i++)
        if (i % a)
            ans += b;
    cout << ans;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> a >> b >> t;
      |     ^~~
      |     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: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<iostream>
#include <string>
#include <cstdlib> //絶対値利用のため
#include <algorithm>
#include <vector>
using namespace std;
typedef long long ll;
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)

const int INF = INT_MAX / 2;

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


	return 0;
}


Compiler output:
a.cc:11:17: error: 'INT_MAX' was not declared in this scope
   11 | const int INF = INT_MAX / 2;
      |                 ^~~~~~~
a.cc:6:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    5 | #include <vector>
  +++ |+#include <climits>
    6 | using namespace std;