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

int a, b, t;
std::cin >> a >> b >> t;
std::cout << (int((t + 0.5) / a) * b);

Compiler output:
a.cc:2:6: error: 'cin' in namespace 'std' does not name a type
    2 | std::cin >> a >> b >> t;
      |      ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int a, b, t;
a.cc:3:6: error: 'cout' in namespace 'std' does not name a type
    3 | std::cout << (int((t + 0.5) / a) * b);
      |      ^~~~
a.cc:3:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | std::cout << (int((t + 0.5) / a) * b);
      | ^~~
Language: C

include <stdio.h>

int main(void){

  int A,B,T;
  
  scanf("%d",&A);
  scanf("%d",&B);
  scanf("%d",&T);
  
  printf("%d\n",(T/A)*B);

  return 0;
}


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

include<stdio.h>

int main(void){

  int A,B,T;
  
  scanf("%d",&A);
  scanf("%d",&B);
  scanf("%d",&T);
  
  printf("%d\n",(T/A)*B);

  return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

include<stdio.h>

int main(){

  int A,B,T;
  
  scanf("%d",&A);
  scanf("%d",&B);
  scanf("%d",&T);
  
  printf("%d\n",T/A*B);

  return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

include<stdio.h>

int main(){

  int A,B,T;
  
  scanf(A,B,T);
  
  printf('%d\n',T/A*B);

  return 0;
}

Compiler output:
a.cc:9:10: warning: multi-character character constant [-Wmultichar]
    9 |   printf('%d\n',T/A*B);
      |          ^~~~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;

int main() {

	int A, B, C;

	cin >> A >> B >> C;

	cout << (C / A)*B << endl;

	cout <<  << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected primary-expression before '<<' token
   15 |         cout <<  << endl;
      |                  ^~
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
    // get three integers
    int A, B, T;
    cin >> A >> B >> T;
  	// Calculate
  	N = int(T / A) * B;
 
    // output
    cout << N;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'N' was not declared in this scope
   10 |         N = int(T / A) * B;
      |         ^
Language: Java

import java.util.*;

public class BiscuitGenerator {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        int T = in.nextInt();
        System.out.println(T / A * B);
    }
}


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

import java.util.Scanner;
class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int T = scanner.nextInt();
        System.out.println(T/A * B)
    }
}

Compiler output:
Main.java:8: error: ';' expected
        System.out.println(T/A * B)
                                   ^
1 error
Language: C++

#include <iostream>
using namespace std;
  
int main(){
int A,B,T;
  cin>>A>>B>>T
  cout<<T/A*B  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before 'cout'
    6 |   cin>>A>>B>>T
      |               ^
      |               ;
    7 |   cout<<T/A*B
      |   ~~~~
Language: C++

#include <iostream>
using namespace std;
  
int main(){
int A<<B<<T;
  cin>>A>>B>>T;
  cout<<T/A*B ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected initializer before '<<' token
    5 | int A<<B<<T;
      |      ^~
a.cc:6:8: error: 'A' was not declared in this scope
    6 |   cin>>A>>B>>T;
      |        ^
a.cc:6:11: error: 'B' was not declared in this scope
    6 |   cin>>A>>B>>T;
      |           ^
a.cc:6:14: error: 'T' was not declared in this scope
    6 |   cin>>A>>B>>T;
      |              ^
Language: C++

#include <iostream>
using namespace std;
  
int main(){
int A<B<T;
  cin>>A>>B>>T
  cout<<T/A*B  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected initializer before '<' token
    5 | int A<B<T;
      |      ^
a.cc:6:8: error: 'A' was not declared in this scope
    6 |   cin>>A>>B>>T
      |        ^
a.cc:6:11: error: 'B' was not declared in this scope
    6 |   cin>>A>>B>>T
      |           ^
a.cc:6:14: error: 'T' was not declared in this scope
    6 |   cin>>A>>B>>T
      |              ^
Language: Java

public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int A,B,T;
      A = sc.nextInt();
      B = sc.nextInt();
      T = sc.nextInt();
      int result = (T / A) * B;
      System.out.println(result);
    }
}

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

#include<iostream>
using namespace std
 
int main(){
int A,B,T;
cin>>A>>B>>T;
cout<<T/A*B;
}
  
 

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~
Language: C

#include<stdio.h>

int main(void){
  int A,B,T;
  scanf("%d%d%d",&A,&B,&T);
  
  printf("%d",(T%A)*B)
  
  
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: expected ';' before '}' token
    7 |   printf("%d",(T%A)*B)
      |                       ^
      |                       ;
......
   10 | }
      | ~
Language: C++

#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
	//入力
	int a,b,t,ans;
	cin >> a >> b >> t;
	//処理
	ans = (t / b) * a;
	//出力
	cout << ans << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: expected '}' at end of input
   11 |         cout << ans << endl;
      |                             ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>

int main(){
  int A, B, C;
  int sum = 0;
  cin >> A,B,C;
  for (int i=1; i<=C; i++){
    if (i % A == 0){
      sum += i*B;
    }
    else
    {
      continue;
    }
    continue;
  }
  cout << sum << endl;
  
};


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

#include <iostream>

int main(){
  int A, B, C;
  int sum = 0;
  cin >> A,B,C;
  for (int i=0; i<C; i++){
    if (i % A == 0){
      sum += i*B;
    }
    else
    {
      continue;
    }
    continue;
  }
  cout << sum << endl;
  
};


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

#include <iostream>
#include <stdin>

int main(){
  int A, B, C;
  int sum = 0;
  cin >> A,B,C;
  for (int i=0; i<C; i++){
    if (i % A == 0){
      sum += i*B;
    }
    else
    {
      continue;
    }
    continue;
  }
  cout << sum << endl;
  
};


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

int main(){
  int A, B, C;
  int sum = 0;
  cin >> A,B,C;
  for (int i=0; i<C; i++){
    if (i % A == 0){
      sum += i*B
    }
    else
    {
      continue
    };
    continue
  };
  cout << sum << endl;
  
};


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> A,B,C;
      |   ^~~
a.cc:7:17: error: expected ';' before '}' token
    7 |       sum += i*B
      |                 ^
      |                 ;
    8 |     }
      |     ~            
a.cc:11:15: error: expected ';' before '}' token
   11 |       continue
      |               ^
      |               ;
   12 |     };
      |     ~          
a.cc:13:13: error: expected ';' before '}' token
   13 |     continue
      |             ^
      |             ;
   14 |   };
      |   ~          
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << sum << endl;
      |   ^~~~
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |   cout << sum << endl;
      |                  ^~~~
Language: C++

int main(){
  int A, B, C;
  int sum = 0;
  cin >> A,B,C;
  for (int i=0; i<C; i++){
    if (i % A == 0){
      sum += i*B
    }
    else
    {
      continue
    }
    continue
  }
  cout << sum << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> A,B,C;
      |   ^~~
a.cc:7:17: error: expected ';' before '}' token
    7 |       sum += i*B
      |                 ^
      |                 ;
    8 |     }
      |     ~            
a.cc:11:15: error: expected ';' before '}' token
   11 |       continue
      |               ^
      |               ;
   12 |     }
      |     ~          
a.cc:13:13: error: expected ';' before '}' token
   13 |     continue
      |             ^
      |             ;
   14 |   }
      |   ~          
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << sum << endl;
      |   ^~~~
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |   cout << sum << endl;
      |                  ^~~~
Language: C++

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

int main(){
  int A,B,T,num;
  cin>>A>>B>>T;
  for(int i=1;A*i<T;i++){
    num+=B
      }
  cout<<num;
}




Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include'bits/stdc++.h'
      |         ^~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>A>>B>>T;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include'bits/stdc++.h'
a.cc:8:11: error: expected ';' before '}' token
    8 |     num+=B
      |           ^
      |           ;
    9 |       }
      |       ~    
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<num;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main(){
  int A,B,T,num;
  cin>>A>>B>>T;
  for(int i=1;A*i<T;i++){
    num+=B
      }
  cout<<num;
}




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

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

Compiler output:
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:7:9: error: 's' was not declared in this scope
    7 |         s=k*b;
      |         ^
Language: C++

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

int main(){
  int A,B,T,num;
  cin>>A>>B>>T;
  for(int i=1;A*i<T;i++){
    num+=B
      }
  cout<<num;
}




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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected primary-expression before ')' token
    9 |   cin >> a >>)b >> t;
      |              ^
Language: Java

public class Main {
	public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      	final int NUM;
      	final int DURATION;
      	final int TIMELIMIT;
      	String str = br.readLine();
      	DURATION = Integer.parseInt(str.split(" ")[0]);
      	NUM = Integer.parseInt(str.split(" ")[1]);
      	TIMELIMIT = Integer.parseInt(str.split(" ")[2]);
      	
      	int total = 0;
      	int nextCount = 1;
      	for (int i = 1; i <= TIMELIMIT; i++) {
      		if (i == nextCount * DURATION) {
      			total += NUM;
      			nextCount++;
      		}
      	}
      	System.out.println(total);
    }	
}


Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	                                           ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: C++

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

Compiler output:
a.cc:1:19: error: missing terminating > character
    1 | #include <iostream
      |                   ^
a.cc:2:1: error: expected unqualified-id before '>' token
    2 | >
      | ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>a>>b>>k;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout<<k/a*b;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

int main(){
  int A,B,T;
  int ans;
  
  std::cin >> A>>B>>T;
  ans = T/A*B;
  std::cout << ans << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'cin' is not a member of 'std'
    5 |   std::cin >> A>>B>>T;
      |        ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main(){
a.cc:7:8: error: 'cout' is not a member of 'std'
    7 |   std::cout << ans << std::endl;
      |        ^~~~
a.cc:7:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:28: error: 'endl' is not a member of 'std'
    7 |   std::cout << ans << std::endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main(){
Language: C

#include <stdio.h>

int main(void){
  int a,b,t;
  scanf("%d %d %d", %a, %b, &t);
  printf("%d", (t/a*b));
}

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

a,b,t = gets.chomp.split(' ').map(&:to_i)

if a == 0
	puts 0
	return
end

puts (t / a) * b


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,t = gets.chomp.split(' ').map(&:to_i)
      | ^
Language: C

#include <stdio.h>
 
int main (void) {
  int a, b, t, i=0;
  double n;
  
  do {
    scanf("%d %d %d", &a, &b, &t);
  } while(!(0<=a && a<=20 && 0<=b && b<=20 && 0<=t && t<=20)) {
    scanf("%d %d %d", &a, &b, &t);
  }
  
  n = (double)t+0.5 / (double)a;
  while(n-1 > i) {
    i++;
  }
  printf("%d\n", b * i);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:62: error: expected ';' before '{' token
    9 |   } while(!(0<=a && a<=20 && 0<=b && b<=20 && 0<=t && t<=20)) {
      |                                                              ^~
      |                                                              ;
Language: C

#include <stdio.h>
 
int main (void) {
  int a, b, t, i=0;
  double n;
  
  do {
    scanf("%d %d %d", &a, &b, &t);
  } while(!(0<=a && a<=20 && 0<=b && b<=20 && 0<=t && t<=20)); {
    scanf("%d %d %d"< &a, &b, &t);
  }
  
  n = t(double)+0.5 / a(double);
  while(n-1 > i) {
    i++;
  }
  printf("%d\n", b * i);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:21: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
   10 |     scanf("%d %d %d"< &a, &b, &t);
      |                     ^
main.c:10:21: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
   10 |     scanf("%d %d %d"< &a, &b, &t);
      |           ~~~~~~~~~~^~~~
      |                     |
      |                     int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:13:9: error: expected expression before 'double'
   13 |   n = t(double)+0.5 / a(double);
      |         ^~~~~~
main.c:13:7: error: called object 't' is not a function or function pointer
   13 |   n = t(double)+0.5 / a(double);
      |       ^
main.c:4:13: note: declared here
    4 |   int a, b, t, i=0;
      |             ^
main.c:13:25: error: expected expression before 'double'
   13 |   n = t(double)+0.5 / a(double);
      |                         ^~~~~~
main.c:13:23: error: called object 'a' is not a function or function pointer
   13 |   n = t(double)+0.5 / a(double);
      |                       ^
main.c:4:7: note: declared here
    4 |   int a, b, t, i=0;
      |       ^
Language: C

#include <stdio.h>
 
int main (void) {
  int a, b, t, i=0;
  double n;
  
  do {
    scanf("%d %d %d", &a, &b, &t);
  } while(!(0<=a && a<=20 && 0<=b && b<=20 && 0<=t && t<=20)) {
    scanf("%d %d %d"< &a, &b, &t);
  }
  
  n = t(double)+0.5 / a(double);
  while(n-1 > i) {
    i++;
  }
  printf("%d\n", b * i);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:62: error: expected ';' before '{' token
    9 |   } while(!(0<=a && a<=20 && 0<=b && b<=20 && 0<=t && t<=20)) {
      |                                                              ^~
      |                                                              ;
main.c:13:9: error: expected expression before 'double'
   13 |   n = t(double)+0.5 / a(double);
      |         ^~~~~~
main.c:13:7: error: called object 't' is not a function or function pointer
   13 |   n = t(double)+0.5 / a(double);
      |       ^
main.c:4:13: note: declared here
    4 |   int a, b, t, i=0;
      |             ^
main.c:13:25: error: expected expression before 'double'
   13 |   n = t(double)+0.5 / a(double);
      |                         ^~~~~~
main.c:13:23: error: called object 'a' is not a function or function pointer
   13 |   n = t(double)+0.5 / a(double);
      |                       ^
main.c:4:7: note: declared here
    4 |   int a, b, t, i=0;
      |       ^
Language: C

#include <stdio.h>

int main (void) {
  int a, b, t, i=0;
  double n;
  
  do {
    scanf("%d %d %d", &a, &b, &t);
  } while {
    0<=a && a<=20 && 0<=b && b<=20 && 0<=t && t<=20
  }
  
  n = t(double)+0.5 / a(double);
  while(n-1 > i) {
    i++;
  }
  printf("%d\n", b * i);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected '(' before '{' token
    9 |   } while {
      |           ^
      |           (
main.c:13:9: error: expected expression before 'double'
   13 |   n = t(double)+0.5 / a(double);
      |         ^~~~~~
main.c:13:7: error: called object 't' is not a function or function pointer
   13 |   n = t(double)+0.5 / a(double);
      |       ^
main.c:4:13: note: declared here
    4 |   int a, b, t, i=0;
      |             ^
main.c:13:25: error: expected expression before 'double'
   13 |   n = t(double)+0.5 / a(double);
      |                         ^~~~~~
main.c:13:23: error: called object 'a' is not a function or function pointer
   13 |   n = t(double)+0.5 / a(double);
      |                       ^
main.c:4:7: note: declared here
    4 |   int a, b, t, i=0;
      |       ^
Language: C++

#include <iostream>

int main(){
  int a, b, t;
  cin >> a;
  cin >> b;
  cin >> t;
  
  int result = 0;
  for(int i = a; i < t; i += a) {
   	result += b;
  }
  
  cout << result;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout << result;
      |   ^~~~
      |   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.h>

int main(){
  int a, b, t;
  cin >> a;
  cin >> b;
  cin >> t;
  
  int result = 0;
  for(int i = a; i < t; i += a) {
   	result += b;
  }
  
  cout << result;
  
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected ';' before 'cout'
    6 |   t=(t+0.5)/a
      |              ^
      |              ;
    7 |   cout<<t*b<<endl;
      |   ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
double a,b,t;
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: expected primary-expression before '{' token
    6 |   cout>>{(t+0.5)/a}*b<<endl;
      |         ^
a.cc:6:20: error: invalid type argument of unary '*' (have 'double')
    6 |   cout>>{(t+0.5)/a}*b<<endl;
      |                    ^~
Language: C

#include<stdio.h>
 
int main(void)
{
  int A;
  int b;
  int T;
  int s;
  s=T/A;
  printf("%d\n",B*s);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: 'B' undeclared (first use in this function)
   10 |   printf("%d\n",B*s);
      |                 ^
main.c:10:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int a, b, t;
int main(void){
  scanf("%d%d%d", &a, &b, &c);
  printf("%d\n", (t/a)*b);
}


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

#include<stdio.h>

int main(void)
{
  int A,B,T,s;
s=T/A
printf("%d\n,B*s);
       return 0;
       }

Compiler output:
main.c: In function 'main':
main.c:6:6: error: expected ';' before 'printf'
    6 | s=T/A
      |      ^
      |      ;
    7 | printf("%d\n,B*s);
      | ~~~~~~
main.c:7:8: warning: missing terminating " character
    7 | printf("%d\n,B*s);
      |        ^
main.c:7:8: error: missing terminating " character
    7 | printf("%d\n,B*s);
      |        ^~~~~~~~~~~
main.c:9:8: error: expected declaration or statement at end of input
    9 |        }
      |        ^
Language: C

#include<stdio.h>

int main(void)
{
  int A;
  int B;
  int T;
  int s;
  s=T/A
  
  printf("%d\n",B*s)
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:8: error: expected ';' before 'printf'
    9 |   s=T/A
      |        ^
      |        ;
   10 | 
   11 |   printf("%d\n",B*s)
      |   ~~~~~~
Language: C

#include<stdio.h>

int main(void)
{
  int A;
  int B;
  int T;
  int s;
  int d;
  s=T/A
  d=B*s
  printf("%d\n".d)
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: expected ';' before 'd'
   10 |   s=T/A
      |        ^
      |        ;
   11 |   d=B*s
      |   ~
Language: C++

  1 #include<iostream>
  2 using namespace std;                                                                                                 3
  4 int main(){
  5
  6   int A, B, T;
  7   int count=0;
  8   cin >> A >> B >> T;
  9
 10   for(int i=A; i<T+0.5; i+=A){
 11     count+=B;
 12   }
 13   cout << count;
 14
 15   return 0;}
 16

Compiler output:
a.cc:1:5: error: stray '#' in program
    1 |   1 #include<iostream>
      |     ^
a.cc:1:3: error: expected unqualified-id before numeric constant
    1 |   1 #include<iostream>
      |   ^
a.cc:2:122: error: expected unqualified-id before numeric constant
    2 |   2 using namespace std;                                                                                                 3
      |                                                                                                                          ^
a.cc:15:2: error: expected unqualified-id before numeric constant
   15 |  16
      |  ^~
Language: Java

public class main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int t = scan.nextInt();

        int ans = t / a * b;
        System.out.println(ans);
        scan.close();

	}

}

Compiler output:
Main.java:1: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:5: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class main
Main.java:5: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
                           ^
  symbol:   class Scanner
  location: class main
3 errors
Language: Java

public class main {

	public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int t = scan.nextInt();

        int ans = t / a * b;
        System.out.println(ans);
        scan.close();

	}

}

Compiler output:
Main.java:1: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:4: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class main
Main.java:4: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
                           ^
  symbol:   class Scanner
  location: class main
3 errors
Language: C++

#include<iostream>
using namespace std;

void main(void){

  int a,b,t;
  int i,x;
  double st;
  
  cin >> a>> b>> t;
  
  x=0;
  st=t/a+0.5;
    
  for ( i=0; i< st; i++){
  	x=x+b;
  }
  
  cout<<x;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(void){
      | ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int A,B,T
int main(){
  scanf("%d %d %d",&A,&B,&T);
  printf("%d\n",T/3*5)
}

Compiler output:
a.cc:6:1: error: expected initializer before 'int'
    6 | int main(){
      | ^~~
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int A, B, N, T;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin >> A >> B >> T;
      |   ^~~
a.cc:10:3: error: 'N' does not name a type
   10 |   N = ((T+0.5)/A)*B;
      |   ^
a.cc:12:3: error: 'cout' does not name a type
   12 |   cout << N <<endl;
      |   ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int A, B, N;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:10:3: error: 'cin' does not name a type
   10 |   cin >> A >> B >> T;
      |   ^~~
a.cc:12:3: error: 'N' does not name a type
   12 |   N = ((T+0.5)/A)*B;
      |   ^
a.cc:14:3: error: 'cout' does not name a type
   14 |   cout << N <<endl;
      |   ^~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

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

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

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

Compiler output:
a.cc:2:1: error: 'include' does not name a type
    2 | include namespace std;
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<b*(t/a)<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<b*(t/a)<<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++

#include<iostream>

int get_x(int A, int B, int T){
  
  int i = 0;
  while(1){
    i++;
    if(i*A<=T+0.5 && T+0.5<(i+1)*A) return i;
}

int main(){
  
  int A = 3;
  int B = 3;
  int T = 3;
  
  int x = get_x(A,B,T);
  
  cout << x*B << endl;
  
  return 0;
  

Compiler output:
a.cc: In function 'int get_x(int, int, int)':
a.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   11 | int main(){
      |         ^~
a.cc:11:9: note: remove parentheses to default-initialize a variable
   11 | int main(){
      |         ^~
      |         --
a.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:11:11: error: a function-definition is not allowed here before '{' token
   11 | int main(){
      |           ^
a.cc:21:12: error: expected '}' at end of input
   21 |   return 0;
      |            ^
a.cc:3:31: note: to match this '{'
    3 | int get_x(int A, int B, int T){
      |                               ^
Language: C++

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

int main() {
  
  int all A, B, T;
  cin >> A >> B >> T;
  
  all = B * (T+1/2)/A;
    cout << all << endl;

}
  
  
    


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected initializer before 'A'
    6 |   int all A, B, T;
      |           ^
a.cc:7:10: error: 'A' was not declared in this scope
    7 |   cin >> A >> B >> T;
      |          ^
a.cc:7:15: error: 'B' was not declared in this scope
    7 |   cin >> A >> B >> T;
      |               ^
a.cc:7:20: error: 'T' was not declared in this scope
    7 |   cin >> A >> B >> T;
      |                    ^
a.cc:9:3: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
    9 |   all = B * (T+1/2)/A;
      |   ^~~
      |   std::filesystem::perms::all
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:1:
/usr/include/c++/14/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::all' declared here
  158 |       all               =  0777,
      |       ^~~
Language: C++

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

int main() {
  
  int all, A, B, T;
  cin >> A >> B >> T;
  
  all = B * (T+1/2)/A
    cout << all << endl;

}
  
  
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before 'cout'
    9 |   all = B * (T+1/2)/A
      |                      ^
      |                      ;
   10 |     cout << all << endl;
      |     ~~~~
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:1:10: 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 generated_times = T / A ;
  int ans = generated_times * B ;
  cout << ans << endl ;
}

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 generated_times = T / A ;
	int ans = generated_times * B ;
	cout << ans << endl ;
}

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 <iostream>
using namespace std;
 
int main(){
  int a[3],l, i=0, x;
  while(cin >>l){
  	a[i]=l;
    i++;
  }
  if(a[2]<a[0]){
  	x=0;
  }else{
    x= (int)(a[2]/a[0]) *a[1];
  }
  
  cout << x << endl;
  
  return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |   return;
      |   ^~~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  int a[3],l, i=0, x;
  while(cin >>l){
  	a[i]=l;
    i++;
  }
  if(a[2]<a[0]){
  	x=0;
  }else{
    x= (int)(a[2]/a[0]) *a[1]
  }
  
  cout << x << endl;
  
  return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: expected ';' before '}' token
   13 |     x= (int)(a[2]/a[0]) *a[1]
      |                              ^
      |                              ;
   14 |   }
      |   ~                           
a.cc:18:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |   return;
      |   ^~~~~~
Language: C++

#include <iotream>
using namespace std;

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

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


#include <iotream>
using namespace std;

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



Compiler output:
a.cc:2:10: fatal error: iotream: No such file or directory
    2 | #include <iotream>
      |          ^~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		int time = Integer.parseInt(args[2]) / Integer.parseInt(args[0]);
		return time * Integer.parseInt(args[1]);
	}
}

Compiler output:
Main.java:5: error: incompatible types: unexpected return value
		return time * Integer.parseInt(args[1]);
		            ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		int time = Integer.parseInt(arg[2]) / Integer.parseInt(arg[0]);
		return time * Integer.parseInt(arg[1]);
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		int time = Integer.parseInt(arg[2]) / Integer.parseInt(arg[0]);
		                            ^
  symbol:   variable arg
  location: class Main
Main.java:4: error: cannot find symbol
		int time = Integer.parseInt(arg[2]) / Integer.parseInt(arg[0]);
		                                                       ^
  symbol:   variable arg
  location: class Main
Main.java:5: error: incompatible types: unexpected return value
		return time * Integer.parseInt(arg[1]);
		            ^
Main.java:5: error: cannot find symbol
		return time * Integer.parseInt(arg[1]);
		                               ^
  symbol:   variable arg
  location: class Main
4 errors
Language: C++

#include<iostream>
using namespace std;
int main{
  int A,B,T;
  cin>>A>>B>>T;
  cout<<"A*(B/T)"<<endl;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int A,B,T;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>A>>B>>T;
      |   ^~~
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout<<"A*(B/T)"<<endl;
      |   ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main{
  int A,B,T;
  cin>>A>>B>>T;
  cout<<A*(B/T)<<endl;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int A,B,T;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>A>>B>>T;
      |   ^~~
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout<<A*(B/T)<<endl;
      |   ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

    #include<iostream>
    using namespace std;
    int main()
    {
        //Input
        int n;
        int v[n], c[n];
        cin >> n;
        for(int i = 0; i < n; ++i) cin >>v[i];
        for(int i = 0; i < n; ++i) cin >>c[i];

        int bestVal = 0;

        for(int p = 0; p<n; ++p){
            if (v[p] > c[p]) bestval += v[p] - c[p];
        }

        // 出力
        cout << bestVal<<endl;
        return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:30: error: 'bestval' was not declared in this scope; did you mean 'bestVal'?
   15 |             if (v[p] > c[p]) bestval += v[p] - c[p];
      |                              ^~~~~~~
      |                              bestVal
Language: C++

    #include<iostream>
    using namespace std;
    int main()
    {
        //Input
        int n, v, c;
        cin >> n;
        for(int i = 0; i < n; ++i) cin >>v[i];
        for(int i = 0; i < n; ++i) cin >>c[i];

        int bestVal = 0;

        for(int p = 0; p<n; ++p){
            if (v[p] > c[p]) bestval += v[p] - c[p];
        }

        // 出力
        cout << bestVal<<endl;
        return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:43: error: invalid types 'int[int]' for array subscript
    8 |         for(int i = 0; i < n; ++i) cin >>v[i];
      |                                           ^
a.cc:9:43: error: invalid types 'int[int]' for array subscript
    9 |         for(int i = 0; i < n; ++i) cin >>c[i];
      |                                           ^
a.cc:14:18: error: invalid types 'int[int]' for array subscript
   14 |             if (v[p] > c[p]) bestval += v[p] - c[p];
      |                  ^
a.cc:14:25: error: invalid types 'int[int]' for array subscript
   14 |             if (v[p] > c[p]) bestval += v[p] - c[p];
      |                         ^
a.cc:14:30: error: 'bestval' was not declared in this scope; did you mean 'bestVal'?
   14 |             if (v[p] > c[p]) bestval += v[p] - c[p];
      |                              ^~~~~~~
      |                              bestVal
a.cc:14:42: error: invalid types 'int[int]' for array subscript
   14 |             if (v[p] > c[p]) bestval += v[p] - c[p];
      |                                          ^
a.cc:14:49: error: invalid types 'int[int]' for array subscript
   14 |             if (v[p] > c[p]) bestval += v[p] - c[p];
      |                                                 ^
Language: C++

    #include<iostream>
    using namespace std;
    int main()
    {
        //Input
        int n, v, c;
        cin >> n;
        for(int i = 0; i < n; ++i) cin >>v;
        for(int i = 0; i < n; ++i) cin >>c;

        int bestVal = 0;

        for(int p = 0; p<n; ++p){
            if (v[p] > c[p]) {
                bestval += v[p] - c[p];
            }
        }

        // 出力
        cout << bestVal<<endl;
        return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: invalid types 'int[int]' for array subscript
   14 |             if (v[p] > c[p]) {
      |                  ^
a.cc:14:25: error: invalid types 'int[int]' for array subscript
   14 |             if (v[p] > c[p]) {
      |                         ^
a.cc:15:17: error: 'bestval' was not declared in this scope; did you mean 'bestVal'?
   15 |                 bestval += v[p] - c[p];
      |                 ^~~~~~~
      |                 bestVal
a.cc:15:29: error: invalid types 'int[int]' for array subscript
   15 |                 bestval += v[p] - c[p];
      |                             ^
a.cc:15:36: error: invalid types 'int[int]' for array subscript
   15 |                 bestval += v[p] - c[p];
      |                                    ^
Language: C++

    #include<iostream>
    using namespace std;
    int main()
    {
        //Input
        int n, v, c;
        cin >> n;
        for(int i = 0; i < n; ++i) cin >>v;
        for(int i = 0; i < n; ++i) cin >>c;

        int bestVal = 0;

        for(int p = 0; p<n; ++p){
            if (v[p] > c[p]) bestval += v[p] - c[p];
        }

        // 出力
        cout << bestVal<<endl;
        return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: invalid types 'int[int]' for array subscript
   14 |             if (v[p] > c[p]) bestval += v[p] - c[p];
      |                  ^
a.cc:14:25: error: invalid types 'int[int]' for array subscript
   14 |             if (v[p] > c[p]) bestval += v[p] - c[p];
      |                         ^
a.cc:14:30: error: 'bestval' was not declared in this scope; did you mean 'bestVal'?
   14 |             if (v[p] > c[p]) bestval += v[p] - c[p];
      |                              ^~~~~~~
      |                              bestVal
a.cc:14:42: error: invalid types 'int[int]' for array subscript
   14 |             if (v[p] > c[p]) bestval += v[p] - c[p];
      |                                          ^
a.cc:14:49: error: invalid types 'int[int]' for array subscript
   14 |             if (v[p] > c[p]) bestval += v[p] - c[p];
      |                                                 ^