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

#include <stdio.h>
int main(int argc, char const *argv[])
{
	int N,M,C,A[20][20],B[20],i,j,sum[20],count = 0;
	scanf("%d %d %d",&N,&M,%C);
	for(i = 0;i < M ;i++) scanf("%d",&B[i]);
	for(i = 0;i < N ;i++){ for(j = 0;j < M; j++){ scanf("%d",A[i][j]); sum[i] += a[i][j];} sum[i] += B[i]}
	for(i = 0;i < N ;i++) if(sum[i] > 0) count++;
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:32: error: expected expression before '%' token
    5 |         scanf("%d %d %d",&N,&M,%C);
      |                                ^
main.c:7:86: error: 'a' undeclared (first use in this function)
    7 |         for(i = 0;i < N ;i++){ for(j = 0;j < M; j++){ scanf("%d",A[i][j]); sum[i] += a[i][j];} sum[i] += B[i]}
      |                                                                                      ^
main.c:7:86: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:110: error: expected ';' before '}' token
    7 |         for(i = 0;i < N ;i++){ for(j = 0;j < M; j++){ scanf("%d",A[i][j]); sum[i] += a[i][j];} sum[i] += B[i]}
      |                                                                                                              ^
      |                                                                                                              ;
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int counter = 0;
      	int N = scan.nextInt();
      	int M = scan.nextInt();
      	int C = scan.nextInt();
      	int[] B = int[M];
      	for(int i = 0; i < M; i++){
        		B[i] = scan.nextInt();
        }
      	for(int k = 0; k < N; k++){
      		int[] A = new int[M];
      		for(int i = 0; i < M; i++){
        		A[i] = scan.nextInt();
        	}
      		int sahen = 0;
      		for(int j = 0; j < M; j++){
        		sahen = sahen + A[j] * B[j];
        	}
      		if(sahen + C > 0){
        		counter++;
        	}
        }
      	System.out.print(counter);
      	
    }
 
}

Compiler output:
Main.java:10: error: ']' expected
      	int[] B = int[M];
      	              ^
Main.java:10: error: ';' expected
      	int[] B = int[M];
      	               ^
2 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String{} args){
    	Scanner scan = new Scanner(System.in);
      	int counter = 0;
      	int N = scan.nextInt();
      	int M = scan.nextInt();
      	int C = scan.nextInt();
      	for(int k = 0; k < N; k++){
      		int[] A = new int[M];
      		for(int i = 0; i < M; i++){
        		A[i] = scan.nextInt();
        	}
      		int sahen = 0;
      		for(int j = 0; j < M; j++){
        		sahen = sahen + A[j];
        	}
      		if(sahen + C > 0){
        		counter++;
        	}
        }
      	System.out.print(counter);
      	
    }

}

Compiler output:
Main.java:4: error: <identifier> expected
	public static void main(String{} args){
	                              ^
Main.java:4: error: <identifier> expected
	public static void main(String{} args){
	                                     ^
2 errors
Language: C++

#include <iostream>
using namespace std;

int n, m, c;
int a[21], b[21];
int count = 0;

int main() {
    cin >> n >> m >> c;
    for (int i = 0; i < m; i++) cin >> b[i];

    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            int ans = 0;
            cin >> a[j];
            ans += a[j] * b[j];
        }
        ans += c;
        if (ans > 0) count++;
    }
    cout << count << endl;
}

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

#include <iostream>
using namespace std;

int n, m, c;
int a[m], b[m];
int ans = 0;
int count = 0;

int main() {
    cin >> n >> m >> c;
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            ans += a[j] * b[j];
        }
        ans += c;
        if (ans > 0) count++;
    }
    cout << count << endl;
}

Compiler output:
a.cc:5:7: error: size of array 'a' is not an integral constant-expression
    5 | int a[m], b[m];
      |       ^
a.cc:5:13: error: size of array 'b' is not an integral constant-expression
    5 | int a[m], b[m];
      |             ^
Language: C++

#include<iostream>
using namespace std;
main(){
int a[20][20],b[20],c,n,m,count1=0;

cin>>n>>m>>c;
for(int i=0;i<m;i++){
    cin>>b[i];
}

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

for(int i=0;i<n;i++)
{
    for(int j=;j<m;j++)
    {
       ans+=a[i][j]*b[j];
    }
    ans+=c;
    if(ans>0) count1 ++;
}

cout<<count<<endl;

}

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:13:15: error: expected primary-expression before ';' token
   13 |     for(int j=;j<m;j++)
      |               ^
a.cc:21:15: error: expected primary-expression before ';' token
   21 |     for(int j=;j<m;j++)
      |               ^
a.cc:23:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |        ans+=a[i][j]*b[j];
      |        ^~~
      |        abs
a.cc:25:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |     ans+=c;
      |     ^~~
      |     abs
a.cc:29:7: error: 'count' was not declared in this scope; did you mean 'count1'?
   29 | cout<<count<<endl;
      |       ^~~~~
      |       count1
Language: C

#include <stdio.h>
int main (void)
{
  int M,N,C;
  int a[N][M],b[M];
  int h,i,j;
  int sum[N];
  for (int t =0; t < N; t ++) {
	  sum[t] = 0;
  }
  int p,q;
  for (p = 0; p < N; p++)	{
    for (q=0; q< M; q++)	{
      sum[p] = sum[p] + a[p][q]*b[q] + C;
    }
  }
  int s;
  int count=0;
  for (s = 0; s < N; s++)	{
    if(sum[s]>0)
      count = count + 1;
  }
　return count;
}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: stray '\343' in program
   23 | <U+3000>return count;
      | ^~~~~~~~
Language: C

#include<stdio.h>
#include<stdlib.h>
int main(void){
    int N,M,C;
    scanf("%d %d %d",&N,&M,&C);
    int i,j;
    int **A, *B;

    B = (int*)malloc(sizeof(int)*M);
    A = (int**)malloc(sizeof(int*)*N);
    for(i=0;i<N;i++){
        A[i] = (int*)malloc(sizeof(int)*M);
    }

   // for(i=0;i<M;i++){
        scanf("%d",B);
    //}
    for(i=0;i<N;i++){
       // for(j=0;j<M;j++){
            scanf("%d",A[i][]);
        //}
    }

    int tmp = 0,res=0;
    for(j=0;j<N;j++){
        for(i=0;i<M;i++){
            tmp += A[j][i]*B[i];
        }
        if(tmp+C>0)res++;
    }
    printf("%d",res);
    return 0;


}

Compiler output:
main.c: In function 'main':
main.c:20:29: error: expected expression before ']' token
   20 |             scanf("%d",A[i][]);
      |                             ^
Language: C++

#include<iostream>
#include<vector>

#define REP(i,0,j) for( int i = 0; i < j; i++ )
#define rep(i,j) REP(i,0,j)

using namespace std;


int main(){
	
	int N,M,C,A[20][20],B[20];
	
	cin >> N >> M >> C;
	
	rep(j,M) cin >> B[j];
	rep(i,N) rep(j,M) cin >> A[i][j];
	
	int cnt = 0;
	
	rep(i,N){
		
		int tmp = C;
		rep(j,M) tmp += A[i][j] * B[j];
		if(tmp>0) cnt++;
		
	}
	
	cout << cnt << endl;
	
	return 0;
	
}


Compiler output:
a.cc:4:15: error: expected parameter name, found "0"
    4 | #define REP(i,0,j) for( int i = 0; i < j; i++ )
      |               ^
a.cc: In function 'int main()':
a.cc:16:13: error: 'j' was not declared in this scope
   16 |         rep(j,M) cin >> B[j];
      |             ^
a.cc:5:22: note: in definition of macro 'rep'
    5 | #define rep(i,j) REP(i,0,j)
      |                      ^
a.cc:5:18: error: 'REP' was not declared in this scope
    5 | #define rep(i,j) REP(i,0,j)
      |                  ^~~
a.cc:16:9: note: in expansion of macro 'rep'
   16 |         rep(j,M) cin >> B[j];
      |         ^~~
a.cc:17:13: error: 'i' was not declared in this scope
   17 |         rep(i,N) rep(j,M) cin >> A[i][j];
      |             ^
a.cc:5:22: note: in definition of macro 'rep'
    5 | #define rep(i,j) REP(i,0,j)
      |                      ^
Language: C++

#include<iostream>
#include<vector>

using namespace std;


int main(){
	
	int N,M,C,A[20][20],B[20];
	
	cin >> N >> M >> C;
	
	rep(j,M) cin >> B[j];
	rep(i,N) rep(j,M) cin >> A[i][j];
	
	int cnt = 0;
	
	rep(i,N){
		
		int tmp = C;
		rep(j,M) tmp += A[i][j] * B[j];
		if(tmp>0) cnt++;
		
	}
	
	cout << cnt << endl;
	
	return 0;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'j' was not declared in this scope
   13 |         rep(j,M) cin >> B[j];
      |             ^
a.cc:13:9: error: 'rep' was not declared in this scope
   13 |         rep(j,M) cin >> B[j];
      |         ^~~
a.cc:14:13: error: 'i' was not declared in this scope
   14 |         rep(i,N) rep(j,M) cin >> A[i][j];
      |             ^
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update

using namespace std;
using namespace __gnu_pbds;

//find_by_order gives kth-largest element
//order_of_key gives the number of items in the set that are strictly smaller!!

// OT.find_by_order(k-1)
// 
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;

#define db(x) cerr << #x << "=" << x << endl
#define db2(x, y) cerr << #x << "=" << x << "," << #y << "=" << y << endl
#define db3(x, y, z) cerr << #x << "=" << x << "," << #y << "=" << y << "," << #z << "=" << z << endl
#define db4(x, y, z, w) cerr << #x << "=" << x << "," << #y << "=" << y << "," << #z << "=" << z << "," << #w << "=" << w << endl
#define ll long long
#define pb push_back
#define eb emplace_back
#define all(x) (x).begin(), (x).end()
#define mp make_pair
#define X first
#define Y second
#define sz(x) (int)((x).size())
#define pii pair<int,int>
#define MOD (ll)(998244353)
#define rep(i, n)    for(int i = 0; i < (n); ++i)
#define repA(i, a, n)  for(int i = a; i <= (n); ++i)
#define repD(i, a, n)  for(int i = a; i >= (n); --i)
#define trav(a, x) for(auto& a : x)
typedef vector<int> vi;
#define inf (ll)(1e18)
#define double long double
#define int long long

//////////////////////
const int N = 2005;


int32_t main() {

    ios::sync_with_stdio(false);
    cin.tie(0); 
    cout.tie(0);

    int N, M, C;
    cin >> N >> M >> C;

    vector<int> b(m);
    rep(i,m) cin >> b[i];

    int te. cnt = 0;
    rep(i,n) {
        int sum = 0;
        rep(j,m) {
            cin >> te;
            sum += te*b[j];
        }
        sum += c;
        if(sum > 0) cnt++;
    }
    cout << cnt << '\n'; 
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:51:19: error: 'm' was not declared in this scope
   51 |     vector<int> b(m);
      |                   ^
a.cc:54:11: error: expected initializer before '.' token
   54 |     int te. cnt = 0;
      |           ^
a.cc:55:11: error: 'n' was not declared in this scope
   55 |     rep(i,n) {
      |           ^
a.cc:29:42: note: in definition of macro 'rep'
   29 | #define rep(i, n)    for(int i = 0; i < (n); ++i)
      |                                          ^
a.cc:58:20: error: 'te' was not declared in this scope; did you mean 'tm'?
   58 |             cin >> te;
      |                    ^~
      |                    tm
a.cc:61:16: error: 'c' was not declared in this scope
   61 |         sum += c;
      |                ^
a.cc:62:21: error: 'cnt' was not declared in this scope; did you mean 'int'?
   62 |         if(sum > 0) cnt++;
      |                     ^~~
      |                     int
a.cc:64:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
   64 |     cout << cnt << '\n';
      |             ^~~
      |             int
Language: C

#include <stdio.h>

int main(void) {
    int total, ans;
    int N, M, C;
    scanf("%d %d %d", &N, &M, &C);

    int B[M];
    int A[N][M];
    for (int i = 0; i < M; i++) {
        scanf("%d", B[i]);
    }

    for (int i = 0; i < N; i++) {
        for (int j = 0; j < M; j++) {
            scanf("%d", A[i][j]);
        }
    }

    for (int i = 0; i < N; i++) {
        for (int j = 0; j < M; j++) {
            total += A[i][j] * B[i];
        }

        if (total > 0) {
            ans += 1;
        }
        total = 0
    }

    printf("%d", ans);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:28:18: error: expected ';' before '}' token
   28 |         total = 0
      |                  ^
      |                  ;
   29 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
 
  int n,m,c;
  cin >> n >> m >> c;
  
  int b[m],a[n][m],result=0,count=0;
  
  for(int i=0;i<m;i++)
    cin >> b[i];
  
  for(int i=0;i<n;i++){
  	for(int j=0;j<m;j++){
    	cin >> a[i][j];
      	result = result + (a[i][j]*b[j]);
    }
    if(result+c>0)
      count++:
    result = 0;
  }

 cout << count;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: expected ';' before ':' token
   21 |       count++:
      |              ^
      |              ;
Language: Java

package main;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class EnergyDrinkCollector {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int M = sc.nextInt();

		class DoubleInteger implements Comparable<DoubleInteger>{

			int a;
			int b;

			public int compareTo(DoubleInteger ab) {return ab.a<this.a ? 1 : ab.a==0 ? 0 : -1;}

			public DoubleInteger(int a, int b) {
				this.a=a;
				this.b=b;
			}

		}

		List<DoubleInteger> AB = new LinkedList<>();

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

			int a =sc.nextInt();

			if(a == 0) {
				break;
			}else{
			int b =sc.nextInt();
			AB.add(new DoubleInteger(a,b));
			}

		}

		Collections.sort(AB);

		double result = 0;
		int i = 0;
		for(;M>0;i++) {
			result += AB.get(i).a * AB.get(i).b;
			M -= AB.get(i).b;
		}
		i--;

		result -= Math.abs(M) * AB.get(i).a;
		System.out.println(result);

	}

}

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

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class EnergyDrinkCollector {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        String[] stNM = sc.nextLine().split(" ");
        int N = Integer.parseInt(stNM[0]);
        int M = Integer.parseInt(stNM[1]);

        class DoubleInteger implements Comparable<DoubleInteger>{

            int a;
            int b;

            public int compareTo(DoubleInteger ab) {return ab.a<this.a ? 1 : ab.a==0 ? 0 : -1;}

            public DoubleInteger(String a, String b) {
                this.a=Integer.parseInt(a);
                this.b=Integer.parseInt(b);
            }

        }

        List<DoubleInteger> AB = new LinkedList<>();

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

            String stABi = sc.nextLine();

            if(stABi.isEmpty()) {
                break;
            }else{
            String[] sta = stABi.split(" ");
            AB.add(new DoubleInteger(sta[0],sta[1]));
            }

        }

        Collections.sort(AB);

        int result = 0;
        int i = 0;
        for(;M>0;i++) {
            result += AB.get(i).a * AB.get(i).b;
            M -= AB.get(i).b;
        }
        i--;

        result -= Math.abs(M) * AB.get(i).a;
        System.out.println(result);

    }

}

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

#include <iostrem>
#include <vector>
using namespace std;

int main(){
    //個数の指定
    int N,M,C;
    int count;
    cin >> N >> M >> C;
    vector<int> dots(N);
    vector<int> A(N);
    vector<int> B(N);
    for(int i = 0;i < M;i++){
        cin >> B.at(i);
    }
    //vectorを作りカウント
    for(int k = 0;k < N;k++){
        for(int i = 0;i < M;i++){
        cin >> A.at(i);
        dots.at(k) += A.at(i) * B.at(i); //AとBの内積を取りdotsベクトルの要素とする
    }
    if(dots.at(k) + C > 0){
        count++;
    }
}
}

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

#include <iostream> 
#include <iomanip> 
#include <vector> 
#include <algorithm> 
#include <numeric> 
#include <functional> 
#include <cmath> 
#include <queue> 
#include <stack> 

#define Ford(i,a,b) for (int i=(a);i<(b);i++) 
#define For(i,n) Ford(i,0,n) 
typedef long long ll; 

using namespace std;

int main(){
  int N,M,C;
  cin>>N>>M>>C;
  int B[N];
  int A;
  int ans =0;
  for(int j=0; j<M;j++){
      cin>>B[i];
  }
  for(int i=0; i<N;i++){
    int Sum=0;
    for(int j=0; j<M;j++){
      cin>>A;
      Sum += A*B[j];
    }
    if(Sum>C) ans++;
  }
  
  cout<<ans<<endl;
  return 0;

}

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

#include <iostream>
#deine rep(i,n) for(int i=0; i<n; i++)
using namespace std;
int main(void){
  int n,m,c;cin>>n>>m>>c;
  int b[m],a[n][m];
  int cnt=0;
  rep(i,m)cin>>b[i];
  rep(i,n){
    int sol=0;
    rep(j,m){
      cin>>a[i][j];
      sol+=a[i][j]*b[j];
    }
    if(sol+c>0)cnt++;
  }
  cout<<cnt<<endl;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #deine; did you mean #define?
    2 | #deine rep(i,n) for(int i=0; i<n; i++)
      |  ^~~~~
      |  define
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   rep(i,m)cin>>b[i];
      |       ^
a.cc:8:3: error: 'rep' was not declared in this scope
    8 |   rep(i,m)cin>>b[i];
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;


int main()
{
 int n,m,c;
 cin >> n >> m >> c;
 int arr[m];
 int ans=0;
 for (int i=0;i<m;i++) cin >> arr[i];
 
 while(n--)
 {
     int subans =0
     for(int i=0;i<m;i++)
     {
         int a;
         cin >> a;
         subans += a*arr[i];
     }
     subans +=c;
     if(subans>0) ans+=1;
 }
 cout << ans;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:6: error: expected ',' or ';' before 'for'
   17 |      for(int i=0;i<m;i++)
      |      ^~~
a.cc:17:18: error: 'i' was not declared in this scope
   17 |      for(int i=0;i<m;i++)
      |                  ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力(NとMとC)
		int N = sc.nextInt();
		int M = sc.nextInt();
		int C = sc.nextInt();
		int judge = C;
		int answer = 0;
		int [][] A = new int[N-1][M-1];
		int [] B = new int[M-1];
		for(int k=0;k<M;k++){
			B[k] = sc.nextInt();
		}
		for(int i=0;i<N;i++){
			for(int j=0;j<M;j++){
				A[i][j] = sc.nextInt();
			}
		}
		for(int i=0;i<N;i++){
			for(int j=0;j<M;j++){
				judge =+ A[i][j]*B[j];
			}
			if(judge > 0){
				answer++;
				}
			judge = C;
		}
		System.out.println(count);
	}
}



Compiler output:
Main.java:30: error: cannot find symbol
		System.out.println(count);
		                   ^
  symbol:   variable count
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力(NとMとC)
		int N = sc.nextInt();
		int M = sc.nextInt();
		int C = sc.nextInt();
		int judge = C;
		int answer = 0;
		int [][] A = new int[N-1][M-1];
		int [] B = new int[M-1];
		for(int k=0;k<M;k++){
			B[k] = sc.nextInt();
		}
		for(int i=0;i<N;i++){
			for(j=0;j<M;j++){
				A[i][j] = sc.nextInt();
			}
		}
		for(int i=0;i<N;i++){
			for(j=0;j<M;j++){
				judge =+ A[i][j]*B[j];
			}
			if(judge > 0){
				answer++;
				}
			judge = C;
		}
		System.out.println(count);
	}
}



Compiler output:
Main.java:17: error: cannot find symbol
			for(j=0;j<M;j++){
			    ^
  symbol:   variable j
  location: class Main
Main.java:17: error: cannot find symbol
			for(j=0;j<M;j++){
			        ^
  symbol:   variable j
  location: class Main
Main.java:17: error: cannot find symbol
			for(j=0;j<M;j++){
			            ^
  symbol:   variable j
  location: class Main
Main.java:18: error: cannot find symbol
				A[i][j] = sc.nextInt();
				     ^
  symbol:   variable j
  location: class Main
Main.java:22: error: cannot find symbol
			for(j=0;j<M;j++){
			    ^
  symbol:   variable j
  location: class Main
Main.java:22: error: cannot find symbol
			for(j=0;j<M;j++){
			        ^
  symbol:   variable j
  location: class Main
Main.java:22: error: cannot find symbol
			for(j=0;j<M;j++){
			            ^
  symbol:   variable j
  location: class Main
Main.java:23: error: cannot find symbol
				judge =+ A[i][j]*B[j];
				              ^
  symbol:   variable j
  location: class Main
Main.java:23: error: cannot find symbol
				judge =+ A[i][j]*B[j];
				                   ^
  symbol:   variable j
  location: class Main
Main.java:30: error: cannot find symbol
		System.out.println(count);
		                   ^
  symbol:   variable count
  location: class Main
10 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力(NとMとC)
		int N = sc.nextInt();
		int M = sc.nextInt();
		int C = sc.nextInt();
		int judge = C;
		int answer = 0;
		int [][] A = new int[N-1][M-1];
		int [] B = new int[M-1];
		for(k=0;k<M;k++){
			B[k] = sc.nextInt();
		}
		for(i=0;i<N;i++){
			for(j=0;j<M){
				A[i][j] = sc.nextInt();
			}
		}
		for(i=0;i<N;i++){
			for(j=0;j<M){
				judge =+ A[i][j]*B[j];
			}
			if(judge > 0){
				answer++;
				}
			judge = C;
		}
		System.out.println(count);
	}
}

Compiler output:
Main.java:17: error: ';' expected
			for(j=0;j<M){
			           ^
Main.java:22: error: ';' expected
			for(j=0;j<M){
			           ^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力(NとMとC)
		int N = sc.nextInt();
		int M = sc.nextInt();
		int C = sc.nextInt();
		int judge = C;
		int answer = 0;
		int A[N-1][M-1] = new int[N-1][M-1];
		int B[M-1] = new int[M-1];
		for(k=0;k<M;k++){
			B[k] = sc.nextInt();
		}
		for(i=0;i<N;i++){
			for(j=0;j<M){
				A[i][j] = sc.nextInt();
			}
		}
		for(i=0;i<N;i++){
			for(j=0;j<M){
				judge =+ A[i][j]*B[j];
			}
			if(judge > 0){
				answer++;
				}
			judge = C;
		}
		System.out.println(count);
	}
}

Compiler output:
Main.java:11: error: ']' expected
		int A[N-1][M-1] = new int[N-1][M-1];
		      ^
Main.java:11: error: not a statement
		int A[N-1][M-1] = new int[N-1][M-1];
		       ^
Main.java:11: error: ';' expected
		int A[N-1][M-1] = new int[N-1][M-1];
		         ^
Main.java:11: error: not a statement
		int A[N-1][M-1] = new int[N-1][M-1];
		            ^
Main.java:11: error: ';' expected
		int A[N-1][M-1] = new int[N-1][M-1];
		              ^
Main.java:11: error: not a statement
		int A[N-1][M-1] = new int[N-1][M-1];
		                  ^
Main.java:12: error: ']' expected
		int B[M-1] = new int[M-1];
		      ^
Main.java:12: error: not a statement
		int B[M-1] = new int[M-1];
		       ^
Main.java:12: error: ';' expected
		int B[M-1] = new int[M-1];
		         ^
Main.java:12: error: not a statement
		int B[M-1] = new int[M-1];
		             ^
Main.java:17: error: ';' expected
			for(j=0;j<M){
			           ^
Main.java:22: error: ';' expected
			for(j=0;j<M){
			           ^
12 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力(NとMとC)
		int N = sc.nextInt();
		int M = sc.nextInt();
		int C = sc.nextInt();
		int judge = C
		int answer = 0;
		int A[N-1][M-1] = new int[N-1][M-1];
		int B[M-1] = new int[M-1];
		for(k=0;k<M;k++){
			B[k] = sc.nextInt();
		}
		for(i=0;i<N;i++){
			for(j=0;j<M){
				A[i][j] = sc.nextInt();
			}
		}
		for(i=0;i<N;i++){
			for(j=0;j<M){
				judge =+ A[i][j]*B[j];
			}
			if(judge > 0){
				answer++;
				}
			judge = C;
		}
		System.out.println(count);
	}
}



Compiler output:
Main.java:9: error: ';' expected
		int judge = C
		             ^
Main.java:11: error: ']' expected
		int A[N-1][M-1] = new int[N-1][M-1];
		      ^
Main.java:11: error: not a statement
		int A[N-1][M-1] = new int[N-1][M-1];
		       ^
Main.java:11: error: ';' expected
		int A[N-1][M-1] = new int[N-1][M-1];
		         ^
Main.java:11: error: not a statement
		int A[N-1][M-1] = new int[N-1][M-1];
		            ^
Main.java:11: error: ';' expected
		int A[N-1][M-1] = new int[N-1][M-1];
		              ^
Main.java:11: error: not a statement
		int A[N-1][M-1] = new int[N-1][M-1];
		                  ^
Main.java:12: error: ']' expected
		int B[M-1] = new int[M-1];
		      ^
Main.java:12: error: not a statement
		int B[M-1] = new int[M-1];
		       ^
Main.java:12: error: ';' expected
		int B[M-1] = new int[M-1];
		         ^
Main.java:12: error: not a statement
		int B[M-1] = new int[M-1];
		             ^
Main.java:17: error: ';' expected
			for(j=0;j<M){
			           ^
Main.java:22: error: ';' expected
			for(j=0;j<M){
			           ^
13 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,M,C,n,m;
  cin >> N >> M >> C;
  int A[n][m];
  for(n = 0,n<N,n++;){
    for(m = 0,m<M,m++;){
      cin >> a[m][n];
    }
  }
  int B[n];
  for(n = 0,n<N,n++;){
    cin >> B[n];
  }
  int ans = 0;
  int L[n] = 0;
  for(m = 0,m<M,m++;){
    L[n] += A[n][m]*B[n];
  }
  for(n = 0,n<N,n++;){
    if(L[n]>C){
      ans++;
    }
  }
  cout << ans << endl;
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected primary-expression before ')' token
    7 |   for(n = 0,n<N,n++;){
      |                     ^
a.cc:7:21: error: expected ';' before ')' token
    7 |   for(n = 0,n<N,n++;){
      |                     ^
      |                     ;
a.cc:8:23: error: expected primary-expression before ')' token
    8 |     for(m = 0,m<M,m++;){
      |                       ^
a.cc:8:23: error: expected ';' before ')' token
    8 |     for(m = 0,m<M,m++;){
      |                       ^
      |                       ;
a.cc:9:14: error: 'a' was not declared in this scope
    9 |       cin >> a[m][n];
      |              ^
a.cc:13:21: error: expected primary-expression before ')' token
   13 |   for(n = 0,n<N,n++;){
      |                     ^
a.cc:13:21: error: expected ';' before ')' token
   13 |   for(n = 0,n<N,n++;){
      |                     ^
      |                     ;
a.cc:17:14: error: array must be initialized with a brace-enclosed initializer
   17 |   int L[n] = 0;
      |              ^
a.cc:18:21: error: expected primary-expression before ')' token
   18 |   for(m = 0,m<M,m++;){
      |                     ^
a.cc:18:21: error: expected ';' before ')' token
   18 |   for(m = 0,m<M,m++;){
      |                     ^
      |                     ;
a.cc:21:21: error: expected primary-expression before ')' token
   21 |   for(n = 0,n<N,n++;){
      |                     ^
a.cc:21:21: error: expected ';' before ')' token
   21 |   for(n = 0,n<N,n++;){
      |                     ^
      |                     ;
a.cc:26:23: error: expected '}' at end of input
   26 |   cout << ans << endl;
      |                       ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,M,C,n,m;
  cin >> N >> M >> C;
  int A[n][m];
  for(n = 0,n<N,n++){
    for(m = 0,m<M,m++){
      cin >> a[m][n];
    }
  }
  int B[n];
  for(n = 0,n<N,n++){
    cin >> B[n];
  }
  int ans = 0;
  int L[n] = 0;
  for(m = 0,m<M,m++){
    L[n] += A[n][m]*B[n]
  }
  for(n = 0,n<N,n++){
    if(L[n]>C){
      ans++
    }
  }
  cout << ans << endl;
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before ')' token
    7 |   for(n = 0,n<N,n++){
      |                    ^
      |                    ;
a.cc:12:7: error: condition declares an array
   12 |   int B[n];
      |       ^
a.cc:13:3: error: expected primary-expression before 'for'
   13 |   for(n = 0,n<N,n++){
      |   ^~~
a.cc:12:12: error: expected ')' before 'for'
   12 |   int B[n];
      |            ^
      |            )
   13 |   for(n = 0,n<N,n++){
      |   ~~~       
a.cc:7:6: note: to match this '('
    7 |   for(n = 0,n<N,n++){
      |      ^
a.cc:13:20: error: expected ';' before ')' token
   13 |   for(n = 0,n<N,n++){
      |                    ^
      |                    ;
a.cc:17:3: error: expected primary-expression before 'int'
   17 |   int L[n] = 0;
      |   ^~~
a.cc:16:15: error: expected ')' before 'int'
   16 |   int ans = 0;
      |               ^
      |               )
   17 |   int L[n] = 0;
      |   ~~~          
a.cc:13:6: note: to match this '('
   13 |   for(n = 0,n<N,n++){
      |      ^
a.cc:17:14: error: array must be initialized with a brace-enclosed initializer
   17 |   int L[n] = 0;
      |              ^
a.cc:18:20: error: expected ';' before ')' token
   18 |   for(m = 0,m<M,m++){
      |                    ^
      |                    ;
a.cc:21:3: error: expected primary-expression before 'for'
   21 |   for(n = 0,n<N,n++){
      |   ^~~
a.cc:20:4: error: expected ';' before 'for'
   20 |   }
      |    ^
      |    ;
   21 |   for(n = 0,n<N,n++){
      |   ~~~
a.cc:21:3: error: expected primary-expression before 'for'
   21 |   for(n = 0,n<N,n++){
      |   ^~~
a.cc:20:4: error: expected ')' before 'for'
   20 |   }
      |    ^
      |    )
   21 |   for(n = 0,n<N,n++){
      |   ~~~
a.cc:18:6: note: to match this '('
   18 |   for(m = 0,m<M,m++){
      |      ^
a.cc:21:20: error: expected ';' before ')' token
   21 |   for(n = 0,n<N,n++){
      |                    ^
      |                    ;
a.cc:26:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   26 |   cout << ans << endl;
      |           ^~~
      |           abs
a.cc:26:23: error: expected primary-expression at end of input
   26 |   cout << ans << endl;
      |                       ^
a.cc:26:23: error: expected ')' at end of input
   26 |   cout << ans << endl;
      |                       ^
      |                       )
a.cc:21:6: note: to match this '('
   21 |   for(n = 0,n<N,n++){
      |      ^
a.cc:26:23: error: expected statement at end of input
   26 |   cout << ans << endl;
      |                       ^
a.cc:26:23: error: expected '}' at end of input
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java

import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int rows = scanner.nextInt();
    int cols = scanner.nextInt();
    int constant = scanner.nextInt();
    
    int[] code = new int[cols];
    for (int ix = 0; ix < cols; ix++) {
      code[ix] = scanner.nextInt();
    }
    
    int matches = 0;
    for (int row = 0; row < rows; row++) {
      int result = 0;
      for (int col = 0; col < cols; col++) {
        result += scanner.nextInt() * code[ix];
      }
      
      if (result == constant) matches++;
    }
    
    return matches;
  }
}

Compiler output:
Main.java:19: error: cannot find symbol
        result += scanner.nextInt() * code[ix];
                                           ^
  symbol:   variable ix
  location: class Main
Main.java:25: error: incompatible types: unexpected return value
    return matches;
           ^
2 errors
Language: C++

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

int main() {
    int n,m,c,t;
    cin>>n>>m>>c;
    vector<int> B(m);
    for(int i=0;i<m;i++)
    cin>>B[i];
    
    int count=0,sum;
    for(int i=0;i<n;i++)
    {
        sum=0;
        for(int j=0;j<m;j++)
        {
            cin>>t;
            sum+=b[j]*t;
        }
        if((sum+c)>0)
        count++;
    }
    cout<<count;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: 'b' was not declared in this scope
   18 |             sum+=b[j]*t;
      |                  ^
Language: C++

#include <iostream>
using namespace std;

int main() {
    int n,m,c,t;
    cin>>n>>m>>c;
    vector<int> B(m);
    for(int i=0;i<m;i++)
    cin>>B[i];
    
    int count=0,sum;
    for(int i=0;i<n;i++)
    {
        sum=0;
        for(int j=0;j<m;j++)
        {
            cin>>t;
            sum+=b[j]*t;
        }
        if((sum+c)>0)
        count++;
    }
    cout<<count;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'vector' was not declared in this scope
    7 |     vector<int> B(m);
      |     ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:12: error: expected primary-expression before 'int'
    7 |     vector<int> B(m);
      |            ^~~
a.cc:9:10: error: 'B' was not declared in this scope
    9 |     cin>>B[i];
      |          ^
a.cc:18:18: error: 'b' was not declared in this scope
   18 |             sum+=b[j]*t;
      |                  ^
Language: C++

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

int main() {
  int N, M, C;
  cin >> N >> M >> C;
  
  vector<int> B(M);
  vector<vector<int>> A(N, vector<int>(M));
  
  for (int i = 0; i < M; i++) {
    cin >> B.at(i);
  }
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < M; j++) {
      cin >> A.at(i).at(j)
    }
  }
  
  int counter = 0;
  for (int i = 0; i < N; i++) {
    int score = 0;
    for (int j = 0; j < M; j++) {
      score += A.at(i).at(j) * B.at(j);
    }
    if (score+C > 0) {
      counter++;
    }
  }
  cout << counter << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: expected ';' before '}' token
   16 |       cin >> A.at(i).at(j)
      |                           ^
      |                           ;
   17 |     }
      |     ~
Language: C

#include<stdio.h>
int main(void)
{
  int n, m, c;
  scanf("%d %d %d", &n, &m, &c);
  int b[m], i, j, a[j][m];
  for(i=0;i<=m;i++){
    scanf("%d", &b[i]);
  }
  for(j=0;j<n;j++){
    for(k=0;i<m;k++){
      scanf("%d", a[j][k]);
    }
  }
  int z,  x=0, y=0,  ans;
  for (j=0;j<=n;j++) {
    for(j=0;i<=m;j++){
      z=a[x][y]*b[y];
      ans+=z;
      z=0;
      y+=1;
    }
    ans+=c;
    if(ans>0){
      printf("%d", ans);
      break;
    }else{}
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'k' undeclared (first use in this function)
   11 |     for(k=0;i<m;k++){
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
  int n, m, c;
  scanf("%d %d %d", &n, &m, &c);
  int b[m], i, j, a[j][m];
  for(i=0;i<=m;i++){
    scanf("%d", &b[i]);
  }
  for(j=0;j<n;j++){
    for(k=0;i<m;k++){
      scanf("%d", a[j][k]);
    }
  }
  int z,  x=0, y=0,  ans;
  for (l=0;j<=n;l++) {
    for(o=0;i<=m;o++){
      z=a[x][y]*b[y];
      ans+=z;
      z=0;
      y+=1;
    }
    ans+=c;
    if(ans>0){
      printf("%d", ans);
      break;
    }else{}
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'k' undeclared (first use in this function)
   11 |     for(k=0;i<m;k++){
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:8: error: 'l' undeclared (first use in this function)
   16 |   for (l=0;j<=n;l++) {
      |        ^
main.c:17:9: error: 'o' undeclared (first use in this function)
   17 |     for(o=0;i<=m;o++){
      |         ^
Language: C

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

int main(void){
  int N,M,C;
  int a[200][200],b[200];
  int i,j,count=0,temp=0;
  
  scanf("%d%d%d", &N, &M, &C);
  
  for(i=0; i<M; i++){
    scanf("%d", &b[i]);
  }
  
  for(i-0; i<N; i++){
    for(j=0; j<M; j++){
      scanf("%d", &a[i][j]);
      temp = temp + a[i][j]*b[j];
    }
    if(temp+C>0){
      count++;
    }
    temp=0;
  }
  
  printf("%d\n" count);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:16: error: expected ')' before 'count'
   26 |   printf("%d\n" count);
      |         ~      ^~~~~~
      |                )
Language: C

#include <iostream>
using namespace std;
int main(void){
    int n,m,c,ans = 0 ,temp[20] = {};
    cin >> n >> m >> c;
    int b[m];
    for(int i = 0; i < m; i++){
        cin >> b[i];
    }
    int a[n][m];
    for(int i = 0; i < n; i++){
        for(int j = 0; j < m; j++){
            cin >> a[i][j];
        }
    }
    //i = 0;
    //while(i < n){
    for(int i = 0; i < n; i++){
        for(int j = 0; j < m; j++){
            temp[i] += a[i][j]*b[j];
        }
        temp[i] += c;
        if(temp[i] > 0){
            ans++;
        }
        //i++;
    }
    
    cout << ans << endl;
    // for(int i = 0; i < n; i++){
    //     for(int j = 0; j < m; j++){
    //         temp =+ a[i][j]*b[j];
    //     }
    // }
    
    
    // for(int i = 0; i < m; i++){
    //     cout << b[i] << ' ';
    // }
    // cout << endl;
    // for(int i = 0; i < n; i++){
    //     for(int j = 0; j < m; j++){
    //         cout << a[i][j] << ' ';
    //         if(j == 2){
    //             cout << endl;
    //             }
    //     }
    // }
}


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

#include <bits/stdc++.h>
 
using namespace std;
 
int main(void) {
    int N, M, C;
    cin >> N >> M >> C;
    vector<int> B(M);
    for_each(begin(B), end(B), [](auto &b) {
        cin >> b;
    });
    vector<vector<int>> A(N, vector<int>(M));
    for_each(begin(A), end(A), [](auto &a) {
        for_each(begin(a), end(a), [](auto &e) {
            cin >> e;
        });
    });
 
    int ans = count_if(begin(A), end(A), [](auto a) {
        int sum = C;
        for (int i = 0; i < M; i++) {
            sum += a[i] * B[i];
        }
        return sum > 0;
    });
    cout << ans << endl;
}

Compiler output:
a.cc: In lambda function:
a.cc:20:19: error: 'C' is not captured
   20 |         int sum = C;
      |                   ^
a.cc:19:43: note: the lambda has no capture-default
   19 |     int ans = count_if(begin(A), end(A), [](auto a) {
      |                                           ^
a.cc:6:15: note: 'int C' declared here
    6 |     int N, M, C;
      |               ^
a.cc:21:29: error: 'M' is not captured
   21 |         for (int i = 0; i < M; i++) {
      |                             ^
a.cc:19:43: note: the lambda has no capture-default
   19 |     int ans = count_if(begin(A), end(A), [](auto a) {
      |                                           ^
a.cc:6:12: note: 'int M' declared here
    6 |     int N, M, C;
      |            ^
a.cc:22:27: error: 'B' is not captured
   22 |             sum += a[i] * B[i];
      |                           ^
a.cc:19:43: note: the lambda has no capture-default
   19 |     int ans = count_if(begin(A), end(A), [](auto a) {
      |                                           ^
a.cc:8:17: note: 'std::vector<int> B' declared here
    8 |     vector<int> B(M);
      |                 ^
Language: C++

# include < bits / stdc ++. h >
using namespace std ;
int main () {
  // input
  int N , M , C ; cin >> N >> M >> C ;
  vector <int > B ( M );
  for ( int i = 0; i < M ; ++ i ) {
  cin >> B [ i ];
  }
  vector < vector <int >> A (N , vector <int >( M ));
  for ( int i = 0; i < N ; ++ i ) {
  for ( int j = 0; j < M ; ++ j ) {
  cin >> A [ i ][ j ];
  }
  }
  // compute
  int ans = 0;
  for ( int i = 0; i < N ; ++ i ) {
    // check whether i-th source code solves this problem
    int sum = 0;
    for ( int j = 0; j < M ; ++ j ) {
      sum += A [ i ][ j ] * B [ j ];
    }
      if ( sum + C > 0) {
          ++ ans ;
      }
  }
  // output
  cout << ans << 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++


#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
//*/
using namespace std;
static const int _ = []() {
	ios::sync_with_stdio(false);
	cin.sync_with_stdio(false);
	cout.sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);
	return 0;
}();
// I hate typing .first or .second
template<typename T, typename U>
struct par {
	T x;
	U y;
	par() :x(-1), y(-1) {}
	par(const T& x, const U& y) :x(x), y(y) {}
	bool operator<(const par& other) const {
		if (x == other.x) return y < other.y;
		return x < other.x;
	}
	bool operator==(const par& other) const {
		return x == other.x && y == other.y;
	}
	par operator-(const par& b) const {
		return { x - b.x, y - b.y };
	}
};
#define ll long long
#define ull unsigned long long
#define rep(i,a) for(ll i=0;i<(a);i++)
#define rp1(i,a) for(ll i=1;i<=(a);i++)
#define rng(i,a,b) for(ll i=(a);i<=(b);i++)
#define rev(i,a) for(ll i=(a)-1;i>=0;i--)
#define S size()
#define all(a) (a).begin(),(a).end()
#define any(i,a) for(auto& i:a)
#define pll par<ll,ll>
#define pii par<int,int>
#define X first
#define Y second
#define V vector
#define VL V<ll>
#define VVL V<VL>
#define VS V<string>
template<class T> inline vector<T> rv(ll n) { vector<T> v(n); rep(i, n) cin >> v[i]; return v; }
template<class T> inline void pv(const vector<T>& v) { rep(i, v.size()) cout << v[i] << " "; cout << endl; }
template<class T> inline void amax(T& a, const T& b) { if (a < b) a = b; }
template<class T> inline void amin(T& a, const T& b) { if (a > b) a = b; }
const ll MOD = 1e9 + 7;
const ll MOD1 = 998244353;
struct custom_hash {
	static uint64_t splitmix64(uint64_t x) {
		// http://xorshift.di.unimi.it/splitmix64.c
		x += 0x9e3779b97f4a7c15;
		x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
		x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
		return x ^ (x >> 31);
	}
	size_t operator()(uint64_t x) const {
		static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
		return splitmix64(x + FIXED_RANDOM);
	}
};
ll GCD(ll a, ll b) {
	while (b) {
		ll r = a % b;
		a = b;
		b = r;
	}
	return a;
}



int main(int argc, char** argv) {
	ll n, m, C;
	cin >> n >> m >> C;
	vector<ll> b(m); rep(i, m) cin >> b[i];
	vector<vector<ll>> a(n, vector<ll>(m, 0));
	rep(i, n) rep(j, m) cin >> a[i][j];
	ll ans = 0;
	rep(i, n) {
		ll x = C;
		rep(i, m) {
			x += a[i][j] * b[j];
		}
		if (x > 0) ans++;
	}
	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:90:35: error: 'j' was not declared in this scope
   90 |                         x += a[i][j] * b[j];
      |                                   ^
Language: C++

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

int main(){
  int N, M, C;  //N個のソースコード, M個の数字, Cというバイアス
  cin >> N >> M >> C;

  //長さMの配列を作る。要素を0で初期化
  vector<int> B(M, 0);
  for (int i = 0; i < M; i++){
    cin >> B[i];
  }

  //N*Mの配列を作る
  //Aは, vector<int>の長さNの配列
  //これを, vector<int>(M)で初期化(長さMの配列)
  vector<vector>int>> A(N, vector<int>(M));
  for (int i = 0; i < N; i++){
    for (int j = 0; j < M; j++){
      cin >> A[i][j];
    }
  }

  int ans = 0;
  for(int i = 0; i < N; i++){
    int sum = 0;
    for(int j = 0; j < M; j++){
      sum += A[i][j] * B[j];
    }
    sum += C;
    if(sum>0) ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
   21 |   vector<vector>int>> A(N, vector<int>(M));
      |                ^
a.cc:21:16: note:   expected a type, got 'vector'
a.cc:21:16: error: template argument 2 is invalid
a.cc:21:20: error: expected unqualified-id before '>>' token
   21 |   vector<vector>int>> A(N, vector<int>(M));
      |                    ^~
a.cc:24:14: error: 'A' was not declared in this scope
   24 |       cin >> A[i][j];
      |              ^
a.cc:32:14: error: 'A' was not declared in this scope
   32 |       sum += A[i][j] * B[j];
      |              ^
Language: Java

public class Main {

	public static void main(String[] args) {

		try(BufferedReader input = new BufferedReader(new InputStreamReader(System.in))){

			String[] l1 = input.readLine().split(" ");
			int N = Integer.parseInt(l1[0]);
			int M = Integer.parseInt(l1[1]);
			int C = Integer.parseInt(l1[2]);

			String[] l2 = input.readLine().split(" ");
			int[] B = new int[M];
			for(int i = 0; i < M; i++) {
				B[i] = Integer.parseInt(l2[i]);
			}

			int cnt = 0;

			for(int i=0; i < N; i++) {
				int calc = 0;
				String[] lines = input.readLine().split(" ");
				for(int j = 0; j < M; j++) {
					calc += Integer.parseInt(lines[j]) * B[j];
				}
				if(calc + C > 0) cnt++;
			}

			System.out.println(cnt);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}


Compiler output:
Main.java:5: error: cannot find symbol
		try(BufferedReader input = new BufferedReader(new InputStreamReader(System.in))){
		    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
		try(BufferedReader input = new BufferedReader(new InputStreamReader(System.in))){
		                               ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
		try(BufferedReader input = new BufferedReader(new InputStreamReader(System.in))){
		                                                  ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:31: error: cannot find symbol
		} catch (IOException e) {
		         ^
  symbol:   class IOException
  location: class Main
4 errors
Language: C++

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

int main(){
	int N,M,C,ans=0,d,e;
  	
  	cin >> N >> M >> C;
  	vector<int> B(M,0),;
  	for(int j=0;j<M;j++)cin >> B[j];
  	for(int i=0;i<N;i++){
      	d=C;
    	for(int j=0;j<M;j++){
          cin >> e;
          d+=e*B[j];
        }
    	if(d>0)ans++;
    }
  	cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected unqualified-id before ';' token
    9 |         vector<int> B(M,0),;
      |                            ^
Language: C++

#include<bits/stdc ++.h>
using namespace std;
int main() 
{
  //input
  int N, M, C;
  cin  >> N >> M >> C;
  vector <int> B(M);
  for(int i = 0; i < M; ++i)
  {
    cin  >> B[i];
  }
  vector <vector <int>> A(N, vector <int>(M));
  for(int i = 0; i < N; ++i) 
  {
    for(int j = 0; j < M; ++j)
    {
      cin  >> A[i][j];
    }
  }//computeintans = 0;
  for(int i = 0; i < N; ++i) {
    //checkwhetheri-thsourcecodesolvesthisproblem
    int sum = 0;
    for(int j = 0; j < M; ++j)
    {
      sum += A[i][j] * B[j];
    }
    if(sum + C > 0) 
    {
      ++ans;
    }
  }
  //output
  cout  << ans  << endl;
}

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

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

int main()
{
    int str[20][20]={0},STR[20]={0},N=0,M=0,C=0,i=0,j=0,count=0,ans=0;
    scanf("%d%d%d",&N,&M,&C);
    for(i=0;i<M;i++)
    {
        scanf("%d",&STR[i]);
    }
    for(i=0;i<N;i++)
    {
        for(j=0;j<M;j++)
        {
            scanf("%d",&str[i][j]);
        }
    }
    
    
    i=0;
    j=0;
    

    while(i<N)
    {
        for(j=0;j<M;j++)
        {
            ans+=str[i][j]*STR[j];
        }
        if((ans+C)>0)
        {
            count+=1;

        }
        i++;
        ans=0;
    }
    printf("%d",count);

    
    return 0;
}

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