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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: array must be initialized with a brace-enclosed initializer
    6 |   int b[n],a[n][m],sum[m]=0;
      |                           ^
a.cc:16:11: error: ordered comparison of pointer with integer zero ('int*' and 'int')
   16 |   if(sum+c>0) count++;
      |      ~~~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: expected ';' before 'return'
   15 |   cout<<count<<endl
      |                    ^
      |                    ;
   16 |     return 0
      |     ~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main (){
  int n,m,c,i,jsum,count=0;
  cin >>n>>m>>c;
  int b[n],a[n][m];
  for(i=0;i<n;i++){
    cin>>b[i];
    for(j=0;j<m;j++){
      cin >>a[i][j];
    }
    sum=b[i]*a[i][j];
  }
  if(sum+c>0) count++;
  cout<<count<<endl
    return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'j' was not declared in this scope
    9 |     for(j=0;j<m;j++){
      |         ^
a.cc:12:5: error: 'sum' was not declared in this scope; did you mean 'jsum'?
   12 |     sum=b[i]*a[i][j];
      |     ^~~
      |     jsum
a.cc:12:19: error: 'j' was not declared in this scope
   12 |     sum=b[i]*a[i][j];
      |                   ^
a.cc:14:6: error: 'sum' was not declared in this scope; did you mean 'jsum'?
   14 |   if(sum+c>0) count++;
      |      ^~~
      |      jsum
a.cc:15:20: error: expected ';' before 'return'
   15 |   cout<<count<<endl
      |                    ^
      |                    ;
   16 |     return 0
      |     ~~~~~~
Language: C++

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

int main(){

int N, M, C;

vector<int>B;
for(int i = 0; i < M; i++){ 
     cin >> B.at(i);
}

int cnt =0;
for(int i = 0; i < N; i++){ 
vector<int)A(M);
    for(int j = 0; j < M; j++){ 
         cin >> A.at(j);
    }
    for(int i = 0; i < M; i++){ 
    if(A.at(i) * B.at(i) + C > 0)
        cnt++;
             }
} 

cout << cnt << endl; 

}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: template argument 1 is invalid
   15 | vector<int)A(M);
      |        ^~~
a.cc:15:8: error: template argument 2 is invalid
a.cc:15:11: error: expected unqualified-id before ')' token
   15 | vector<int)A(M);
      |           ^
a.cc:17:17: error: 'A' was not declared in this scope
   17 |          cin >> A.at(j);
      |                 ^
a.cc:20:8: error: 'A' was not declared in this scope
   20 |     if(A.at(i) * B.at(i) + C > 0)
      |        ^
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |             std:cin >> A[i][j];
      |                 ^~~
      |                 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
      |                  ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: expected ';' before 'sum'
   17 |       cin >> A[j]
      |                  ^
      |                  ;
   18 |       sum+=A[j]*B[j];
      |       ~~~
Language: C++

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

int main(){
	int N, M, C;
  	cin >> N >> M >> C;
  	vector<int, M> B;
  	for(int i=0; i<M; i++){
      	int tmp_b;
      	cin >> tmp_b;
    	cin >> B.push_back(tmp_b);
    }
  	
  	int ans = 0;
  	int sum = 0;  	
  	for(int i=0; i < N;i++){
    	for(int j=0; j < M; j++){
          	int tmp_a;
        	cin >> tmp_a;
          	sum += tmp_a*B[j];
        }
      	if(sum > - C){
        	ans++;
        }
    }
  
	cout << ans << endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
    9 |         vector<int, M> B;
      |                      ^
a.cc:9:22: note:   expected a type, got 'M'
a.cc:13:18: error: request for member 'push_back' in 'B', which is of non-class type 'int'
   13 |         cin >> B.push_back(tmp_b);
      |                  ^~~~~~~~~
a.cc:22:31: error: invalid types 'int[int]' for array subscript
   22 |                 sum += tmp_a*B[j];
      |                               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: the value of 'M' is not usable in a constant expression
    9 |         array<int, M> B;
      |                     ^
a.cc:7:16: note: 'int M' is not const
    7 |         int N, M, C;
      |                ^
a.cc:9:21: note: in template argument for type 'long unsigned int'
    9 |         array<int, M> B;
      |                     ^
a.cc:10:27: error: the value of 'M' is not usable in a constant expression
   10 |         array<array<int, M>, N> A;
      |                           ^
a.cc:7:16: note: 'int M' is not const
    7 |         int N, M, C;
      |                ^
a.cc:10:27: note: in template argument for type 'long unsigned int'
   10 |         array<array<int, M>, N> A;
      |                           ^
a.cc:10:31: error: template argument 1 is invalid
   10 |         array<array<int, M>, N> A;
      |                               ^
a.cc:10:31: error: the value of 'N' is not usable in a constant expression
a.cc:7:13: note: 'int N' is not const
    7 |         int N, M, C;
      |             ^
a.cc:10:31: note: in template argument for type 'long unsigned int'
   10 |         array<array<int, M>, N> A;
      |                               ^
a.cc:12:17: error: invalid types 'int[int]' for array subscript
   12 |         cin >> B[i];
      |                 ^
a.cc:19:25: error: invalid types 'int[int]' for array subscript
   19 |                 cin >> A[i][j];
      |                         ^
a.cc:20:25: error: invalid types 'int[int]' for array subscript
   20 |                 sum += A[i][j]*B[j];
      |                         ^
a.cc:20:33: error: invalid types 'int[int]' for array subscript
   20 |                 sum += A[i][j]*B[j];
      |                                 ^
Language: C++

#include "stdafx.h"
#include <algorithm>
#include <array>
#include <vector>
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <functional>
#include <queue>
#include <random>

//AtCoderC++.cpp

using namespace std;


#define rep(i,from,to) for(int i=from;i<to;i++)
#define ints(name,n) vector<int> name;name.resize(n)

template<typename T> void Show(vector<vector<T>> v, string delimiter = " ") {
	for (int i = 0; i < v.size(); i++) {
		for (int j = 0; j < v[i].size(); j++) {
			cout << v[i][j];
			if (j != v[i].size() - 1) {
				cout << delimiter;
			} else {
				cout << endl;
			}
		}
	}
}
template<typename T> void Show(vector<T> v, string delimiter = " ") {
	for (int i = 0; i < v.size(); i++) {
		cout << v[i];
		if (i != v.size() - 1) {
			cout << delimiter;
		} else {
			cout << endl;
		}
	}
}
template<typename T> vector<T> getUniform(T value, int n) {
	vector<vector<T>> ts;
	ts.resize(n);
	for (int i = 0; i < n; i++) {
		ts[i] = value;
	}
	return ts;
}
template<typename T> vector<vector<T>> getUniform(T value, int row, int col) {
	vector<vector<T>> ts;
	ts.resize(row);
	for (int i = 0; i < row; i++) {
		ts[i].resize(col);
		for (int j = 0; j < col; j++) {
			ts[i][j] = value;
		}
	}
	return ts;
}
bool All(vector<vector<bool>> ts) {
	int h = ts.size();
	int w = ts[0].size();
	rep(i, 0, h) {
		rep(j, 0, w) {
			if (!ts[i][j])return false;
		}
	}
	return true;
}

int main() {
	int N, M, C;
	cin >> N >> M >> C;
	auto Bs = vector<int>();
	Bs.resize(M);
	for (int i = 0; i < M; i++) {
		cin >> Bs[i];
	}
	auto As = vector<vector<int>>();
	As.resize(N);
	for (int i = 0; i < N; i++) {
		As[i].resize(M);
		for (int j = 0; j < M; j++) {
			cin >> As[i][j];
		}
	}
	int ans = 0;
	for (int i = 0; i < N; i++) {
		int sum = 0;
		for (int j = 0; j < M; j++) {
			sum += As[i][j] * Bs[j];
		}
		sum += C;
		if (sum > 0)ans++;
	}
	cout << ans << endl;
}

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

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

int main(){
  int N,M,C;
  cin >> N >> M >> C;
  int A[N][M],B[M];
  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];
  int correct = 0,code;
  for(int i = 0;i < N;i++){
    for(int j = 0;j < M;j++){
      code += A[i][j] * B[j];
    }
    code += C;
    if(code > 0;)correct++;
  }
  cout << correct << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: expected primary-expression before ')' token
   18 |     if(code > 0;)correct++;
      |                 ^
Language: C++

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

int main(){
  int N,M,C;
  cin >> N >> M >> C;
  int A[N][M],B[M];
  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];
  int correct = 0,code;
  for(int i = 0;i < N;i++){
    for(int j = 0;j < M;j++){
      code += A[i][j] * B[j]
    }
    code += C;
    if(code > 0;)correct++;
  }
  cout << correct << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: expected ';' before '}' token
   15 |       code += A[i][j] * B[j]
      |                             ^
      |                             ;
   16 |     }
      |     ~                        
a.cc:18:17: error: expected primary-expression before ')' token
   18 |     if(code > 0;)correct++;
      |                 ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
  vector<vector<int>> v;
  int n, m, c, b[21], temp;
  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++)
    {
      cin>>temp;
      v[i].push_back(temp);
    }
  }
  int ans = 0;
  for(int i = 0; i < n; i++)
  {
    int s = 0;
    for(int j = 0; j <m;j++)
    {
  		s += v[i][j]*b[j];
    }
    if(s + c > 0)
      ans++;
  }
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<vector<int>> v;
      |   ^~~~~~
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 | 
a.cc:7:17: error: expected primary-expression before 'int'
    7 |   vector<vector<int>> v;
      |                 ^~~
a.cc:17:7: error: 'v' was not declared in this scope
   17 |       v[i].push_back(temp);
      |       ^
a.cc:26:22: error: 'v' was not declared in this scope
   26 |                 s += v[i][j]*b[j];
      |                      ^
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int code =sc.nextInt();
		int code2 = sc.nextInt();
		int c = sc.nextInt();

		int[] b = new int[code2];
		int num = 0;
		int num2 =0;
		int sum = 0;
		int count = 0;

		for(int i = 0;i < code2;i++){
			b[i] = sc.nextInt();
		}

		for(int i = 0;i<code;i++){
			for(int j=0;j<code2;j++){
				num = sc.nextInt();
				num2 = b[j]*num;
				sum += num2;
			}
			if(sum + c > 0)count++;
			sum = 0;
		}

		System.out.prinntln(count);
	}
}

Compiler output:
Main.java:30: error: cannot find symbol
		System.out.prinntln(count);
		          ^
  symbol:   method prinntln(int)
  location: variable out of type PrintStream
1 error
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:5: error: expected ',' or ';' before 'for'
   20 |     for(int j=0;j<M;++j){
      |     ^~~
a.cc:20:17: error: 'j' was not declared in this scope
   20 |     for(int j=0;j<M;++j){
      |                 ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int N, M, C;
  cin >> N >> M >> C;
  int A[N][M],B[M];
  for(int i=0; i<N; i++){
    for(int j=0; j<M; j++){
      cin >> A[i][j];
    }
  }
  for(int k=0; k<M; k++){
    cin >> B[M];
  }
  for(int a=0; a<N; a++){
    int sum = 0, count = 0;
    for(int b=0; b<M; b++){
      sum += A[a][b] * B[b];
      if(sum+C > 0)
        count++;
    }
  }
  cout << count << endl;
}

  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:25:11: error: 'count' was not declared in this scope
   25 |   cout << count << endl;
      |           ^~~~~
Language: Java

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

Compiler output:
Main.java:28: error: cannot find symbol
    System.out.print(wa);
                     ^
  symbol:   variable wa
  location: class Main
1 error
Language: C++

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

int main() {
  int n,m,c;
  cin >> n >> m >> c;
  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];
    }
  }
  
  int cnt=0;
  for(int i=0;i<n;i++){
    for(int j=0;j<m;j++){
      int sum=c;
      sum+=a[i][j]*b[j];
    }
    if(sum>0){
      cnt++;
    }
  }
  
  cout << cnt ;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:22:8: error: 'sum' was not declared in this scope
   22 |     if(sum>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 ];
}
}
// 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) {
2
++ans;
}
}
// output
cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:1: error: lvalue required as increment operand
   26 | 2
      | ^
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) {
2
++ ans ;
}
}
// output
cout << ans << endl ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:1: error: lvalue required as increment operand
   25 | 2
      | ^
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		int N = Integer.parseInt(line[0]);
		int M = Integer.parseInt(line[1]);
		int C = Integer.parseInt(line[2]);
		
		line = sc.nextLine().split(" ");
		int[] B = new int[M];
		
		for(int i= 0;i<M;i++) {
			B[i] = Integer.parseInt(line[i]);
		}
		
		int[][] A = new int[N][M];
		for(int i= 0;i<N;i++) {
			line = sc.nextLine().split(" ");
			for(int j= 0;j<M;j++) {
				A[i][j] = Integer.parseInt(line[j]);
			}
		}
		sc.close();
		
		int count =0;
		
		for(int i= 0;i<N;i++) {
			int sum = C;
			for(int j= 0;j<M;j++) {
				sum += A[i][j] * B[j];
			}
			if (sum>0) {
				count ++;
			}
		}
		
		System.out.println(count);

	}

}


Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: 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 n,m,c,i,j,ans=0,sum;
  cin >> n >> m >> c;
  int a[m],b[m];
  for(j=0;j<m;j++){
    cin >> b[j];
  }
  for(i=0;i<n;i++){
    sum = 0;
    for(j=0;j<m;j++){
      cin >> a[j];
      sum += a[j] * b[j];
    }
    sum += c;
    if(sum > 0){
      ans += 1;
    }
  }
  cout << ans << endl;
}
  
#include <iostream>
using namespace std
  
int main(){
  int n,m,c,i,j,ans=0,sum;
  cin >> n >> m >> c;
  int a[m],b[m];
  for(j=0;j<m;j++){
    cin >> b[j];
  }
  for(i=0;i<n;i++){
    sum = 0;
    for(j=0;j<m;j++){
      cin >> a[j];
      sum += a[j] * b[j];
    }
    sum += c;
    if(sum > 0){
      ans += 1;
    }
  }
  cout << ans << endl;
}
  


Compiler output:
a.cc:26:20: error: expected ';' before 'int'
   26 | using namespace std
      |                    ^
      |                    ;
   27 | 
   28 | int main(){
      | ~~~                 
a.cc:28:5: error: redefinition of 'int main()'
   28 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before 'C'
    5 |   int N, M C;
      |            ^
a.cc:6:15: error: 'M' was not declared in this scope
    6 |   cin >> N >> M >> c;
      |               ^
a.cc:6:20: error: 'c' was not declared in this scope
    6 |   cin >> N >> M >> c;
      |                    ^
a.cc:12:13: error: 'C' was not declared in this scope
   12 |      D[k] = C;
      |             ^
a.cc:18:16: error: 'A' was not declared in this scope
   18 |         cin >> A[i][j];
      |                ^
a.cc:19:27: error: 'B' was not declared in this scope
   19 |         D[i] += A[i][j] * B[j];
      |                           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int A[25][25], B[25];

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	int N, M, C, cnt = 0;
	for (int i = 1; i <= M; ++i) cin >> B[i];
	for (int i = 1; i <= N; ++i){
		int sum = 0;
		for (int j = 1; j <= M; ++j){
			cin >> A[i][j];
			sum += A[i][j]*B[j];
		}
		if (sum + C > 0) cnt++;
	}
	cout << cnt << '\n;'

}

Compiler output:
a.cc:20:24: warning: multi-character character constant [-Wmultichar]
   20 |         cout << cnt << '\n;'
      |                        ^~~~~
a.cc: In function 'int main()':
a.cc:20:29: error: expected ';' before '}' token
   20 |         cout << cnt << '\n;'
      |                             ^
      |                             ;
   21 | 
   22 | }
      | ~
Language: C++

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

int main() {
    int n, m, c;
    cin >> n >> m >> c;
    vector<int> b(m);
    for (int i=0; i<m; i++) cin >> b.at(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.at(i).at(j);
    }
    
    int num=0;

    for (int i=o; i < n; i++){
        for (int j=0; j < m; j++){
        c+=a.at(i).at(j)*b.at(j);
        }
        if (c > 0) {
            num++;
        }
    }

    cout << num << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: 'o' was not declared in this scope
   16 |     for (int i=o; i < n; i++){
      |                ^
Language: C++

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

int main()
    int n, m, c;
    cin >> n >> m >> c;
    vector<int> b(m);
    for (int i=0; i<m; i++) cin >> b.at(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.at(i).at(j);
    }
    
    int num=0;

    for (int i=o; i < n; i++){
        for (int j=0; j < m; j++){
        c+=a.at(i).at(j)*b.at(j);
        }
        if (c > 0) {
            num++;
        }
    }

    cout << num << endl;
    
}

Compiler output:
a.cc:5:5: error: expected initializer before 'int'
    5 |     int n, m, c;
      |     ^~~
a.cc:6:5: error: 'cin' does not name a type
    6 |     cin >> n >> m >> c;
      |     ^~~
a.cc:7:19: error: 'm' was not declared in this scope; did you mean 'tm'?
    7 |     vector<int> b(m);
      |                   ^
      |                   tm
a.cc:8:5: error: expected unqualified-id before 'for'
    8 |     for (int i=0; i<m; i++) cin >> b.at(i);
      |     ^~~
a.cc:8:19: error: 'i' does not name a type
    8 |     for (int i=0; i<m; i++) cin >> b.at(i);
      |                   ^
a.cc:8:24: error: 'i' does not name a type
    8 |     for (int i=0; i<m; i++) cin >> b.at(i);
      |                        ^
a.cc:9:26: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |     vector<vector<int>>a(n, vector<int>(m));
      |                          ^
      |                          yn
a.cc:9:41: error: 'm' was not declared in this scope; did you mean 'tm'?
    9 |     vector<vector<int>>a(n, vector<int>(m));
      |                                         ^
      |                                         tm
a.cc:10:5: error: expected unqualified-id before 'for'
   10 |     for (int i=0; i < n; i++){
      |     ^~~
a.cc:10:19: error: 'i' does not name a type
   10 |     for (int i=0; i < n; i++){
      |                   ^
a.cc:10:26: error: 'i' does not name a type
   10 |     for (int i=0; i < n; i++){
      |                          ^
a.cc:16:5: error: expected unqualified-id before 'for'
   16 |     for (int i=o; i < n; i++){
      |     ^~~
a.cc:16:19: error: 'i' does not name a type
   16 |     for (int i=o; i < n; i++){
      |                   ^
a.cc:16:26: error: 'i' does not name a type
   16 |     for (int i=o; i < n; i++){
      |                          ^
a.cc:25:5: error: 'cout' does not name a type
   25 |     cout << num << endl;
      |     ^~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int n, m ,c , sum, cul;
 vector<int> b(m);
 vector<int> a(m);
 int >> n >> m >> c;
 
 for (int i =0; i < m; i++){
 cin >> b.at(i); 
 }
  sum=0;
for (int j =0; j < n; j++){
 for (int i =0; i < m; i++){
 cin >> a.at(i); 
 }
  cul = 0;
 for (int i =0; i < m; i++){
 cul += b.at(i) * a.at(i); 
 }
 cul += c; 
 if (cul > 0 ){
   sum +=1;
 } 
}
cout << sum << endl; 
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: expected unqualified-id before '>>' token
    8 |  int >> n >> m >> c;
      |      ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int n, m ,c , sum, cul;
 vector<int> b(m);
 vector<int> a(m);
 int >> n >> m >> c;
 
 for (int i =0; i < m; i++){
 cin >> b(i); 
 }
  sum=0;
for (int j =0; j < n; j++){
 for (i =0; i < m; i++){
 cin >> a(i); 
 }
  cul = 0;
 for (i =0; i < m; i++){
 cul += b(i) * a(i); 
 }
 cul += c; 
 if (cul > 0 ){
   sum +=1;
 } 
}
cout << sum << endl; 
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: expected unqualified-id before '>>' token
    8 |  int >> n >> m >> c;
      |      ^~
a.cc:11:10: error: no match for call to '(std::vector<int>) (int&)'
   11 |  cin >> b(i);
      |         ~^~~
a.cc:15:7: error: 'i' was not declared in this scope
   15 |  for (i =0; i < m; i++){
      |       ^
a.cc:19:7: error: 'i' was not declared in this scope
   19 |  for (i =0; i < m; i++){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int n,m,c sum, cul;
 vector<int> b(m);
 vector<int> a(m);
 int >> n >> m >> c;
 
 for (int i =0; i < m; i++){
 cin >> b(i); 
 }
  sum=0;
for (int j =0; j < n; j++){
 for (i =0; i < m; i++){
 cin >> a(i); 
 }
  cul = 0;
 for (i =0; i < m; i++){
 cul += b(i) * a(i); 
 }
 cul += c; 
 if (cul > 0 ){
   sum +=1;
 } 
}
cout << sum << endl; 
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before 'sum'
    5 |  int n,m,c sum, cul;
      |            ^~~
a.cc:8:6: error: expected unqualified-id before '>>' token
    8 |  int >> n >> m >> c;
      |      ^~
a.cc:11:10: error: no match for call to '(std::vector<int>) (int&)'
   11 |  cin >> b(i);
      |         ~^~~
a.cc:13:3: error: 'sum' was not declared in this scope
   13 |   sum=0;
      |   ^~~
a.cc:15:7: error: 'i' was not declared in this scope
   15 |  for (i =0; i < m; i++){
      |       ^
a.cc:18:3: error: 'cul' was not declared in this scope
   18 |   cul = 0;
      |   ^~~
a.cc:19:7: error: 'i' was not declared in this scope
   19 |  for (i =0; i < m; i++){
      |       ^
a.cc:22:9: error: 'c' was not declared in this scope
   22 |  cul += c;
      |         ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int N,M,C;
    cin >> N >> M >> C;
    int A[N,M],B[M],ans=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];
        }
    }
    for(int i=0,res=0;i<N;i++){
        for(int j=0;j<M;j++){
            res+=A[i,j]*B[j];
        }
        res+=C;
        if(res>0){
            ans++;
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ']' before ',' token
    7 |     int A[N,M],B[M],ans=0;
      |            ^
      |            ]
a.cc:7:14: error: expected initializer before ']' token
    7 |     int A[N,M],B[M],ans=0;
      |              ^
a.cc:9:16: error: 'B' was not declared in this scope
    9 |         cin >> B[i];
      |                ^
a.cc:13:20: error: 'A' was not declared in this scope
   13 |             cin >> A[i,j];
      |                    ^
a.cc:18:18: error: 'A' was not declared in this scope
   18 |             res+=A[i,j]*B[j];
      |                  ^
a.cc:18:25: error: 'B' was not declared in this scope
   18 |             res+=A[i,j]*B[j];
      |                         ^
a.cc:22:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |             ans++;
      |             ^~~
      |             abs
a.cc:25:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include<iostream>
using namespace std;

int main(){
    int N,M,C;
    cin >> N >> M >> C;
    int A[N,M],B[M],ans=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];
        }
    }
    for(int i=0;i<N;i++){
        for(int j=0,res=0;j<M;j++){
            res+=A[i,j]*B[j];
        }
        res+=C;
        if(res>0){
            ans++;
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ']' before ',' token
    7 |     int A[N,M],B[M],ans=0;
      |            ^
      |            ]
a.cc:7:14: error: expected initializer before ']' token
    7 |     int A[N,M],B[M],ans=0;
      |              ^
a.cc:9:16: error: 'B' was not declared in this scope
    9 |         cin >> B[i];
      |                ^
a.cc:13:20: error: 'A' was not declared in this scope
   13 |             cin >> A[i,j];
      |                    ^
a.cc:18:18: error: 'A' was not declared in this scope
   18 |             res+=A[i,j]*B[j];
      |                  ^
a.cc:18:25: error: 'B' was not declared in this scope
   18 |             res+=A[i,j]*B[j];
      |                         ^
a.cc:20:9: error: 'res' was not declared in this scope
   20 |         res+=C;
      |         ^~~
a.cc:22:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |             ans++;
      |             ^~~
      |             abs
a.cc:25:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i,n)  for(int i=0;i<(n);++i)

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


Compiler output:
a.cc: In function 'int main()':
a.cc:23:37: error: expected ';' before '}' token
   23 |       sum += A.at(i).at(j) * B.at(j)
      |                                     ^
      |                                     ;
   24 |     }
      |     ~
Language: Java

class Main{
    public static void main(String args[]){
        int count = 0;
        int N = sc.nextInt();
        int M = sc.nextInt();
        int C = sc.nextInt();
        int[][] A = new int[N][M];
        int[] B = new int[M];
        for(int i = 0; i < M;i++){
            B[i] = 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++){
            int sum = C;
            for(int j = 0; j < M;i++){
                sum += A[i][j] * B[j];
            }
            if(sum > 0)count++;
        }
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
        int N = sc.nextInt();
                ^
  symbol:   variable sc
  location: class Main
Main.java:5: error: cannot find symbol
        int M = sc.nextInt();
                ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: cannot find symbol
        int C = sc.nextInt();
                ^
  symbol:   variable sc
  location: class Main
Main.java:10: error: cannot find symbol
            B[i] = sc.nextInt();
                   ^
  symbol:   variable sc
  location: class Main
Main.java:14: error: cannot find symbol
                A[i][j] = sc.nextInt();
                          ^
  symbol:   variable sc
  location: class Main
5 errors
Language: Java

class ABC121B{
    public static void main(String args[]){
        int count = 0;
        int N = sc.nextInt();
        int M = sc.nextInt();
        int C = sc.nextInt();
        int[][] A = new int[N][M];
        int[] B = new int[M];
        for(int i = 0; i < M;i++){
            B[i] = 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++){
            int sum = C;
            for(int j = 0; j < M;i++){
                sum += A[i][j] * B[j];
            }
            if(sum > 0)count++;
        }
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
        int N = sc.nextInt();
                ^
  symbol:   variable sc
  location: class ABC121B
Main.java:5: error: cannot find symbol
        int M = sc.nextInt();
                ^
  symbol:   variable sc
  location: class ABC121B
Main.java:6: error: cannot find symbol
        int C = sc.nextInt();
                ^
  symbol:   variable sc
  location: class ABC121B
Main.java:10: error: cannot find symbol
            B[i] = sc.nextInt();
                   ^
  symbol:   variable sc
  location: class ABC121B
Main.java:14: error: cannot find symbol
                A[i][j] = sc.nextInt();
                          ^
  symbol:   variable sc
  location: class ABC121B
5 errors
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){
   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> B(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];
      if (sum + c >0) ans++;
   }
   }
   cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected ';' before 'N'
    6 |    cin N >> M >> C;
      |       ^~
      |       ;
a.cc:7:4: 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 | #include <string>
a.cc:7:11: error: expected primary-expression before 'int'
    7 |    vector<int> B(M);
      |           ^~~
a.cc:9:15: error: 'B' was not declared in this scope
    9 |        cin >> B[i];
      |               ^
a.cc:11:18: error: expected primary-expression before 'int'
   11 |    vector<vector<int>> A(N,vector<int> B(M));
      |                  ^~~
a.cc:14:19: error: 'A' was not declared in this scope
   14 |            cin >> A[i][j];
      |                   ^
a.cc:21:14: error: 'A' was not declared in this scope
   21 |       sum += A[i][j] *B[j];
      |              ^
a.cc:21:23: error: 'B' was not declared in this scope
   21 |       sum += A[i][j] *B[j];
      |                       ^
a.cc:22:17: error: 'c' was not declared in this scope
   22 |       if (sum + c >0) ans++;
      |                 ^
Language: C++

#include <iostream>
#include <array>

int main()
{
  int N, M, C;
  int temp, count=0;
  std::vector<int> B;
  
  std::cin >> N >> M >> C;
  B.resize(N);
  for(int i=0; i<M; i++){
    std::cin >> B.at(i);
  }
  
  for(int i=0; i<N; i++){
    int eval = C;
    for(int j=0; j<M; j++){
      std::cin >> temp;
      eval += temp * B(j);
    }
    if(eval > 0)count++;
  }
  std::cout << count;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'vector' is not a member of 'std'
    8 |   std::vector<int> B;
      |        ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <array>
  +++ |+#include <vector>
    3 | 
a.cc:8:15: error: expected primary-expression before 'int'
    8 |   std::vector<int> B;
      |               ^~~
a.cc:11:3: error: 'B' was not declared in this scope
   11 |   B.resize(N);
      |   ^
Language: C++

#include <iostream>
#include <array>

int main()
{
  int N, M, C;
  int temp, count=0;
  
  std::cin >> N >> M >> C;
  A.resize(N);
  for(int i=0; i<N; i++){
    int eval = C;
    for(int j=0; j<M; j++){
      std::cin >> temp;
      eval += temp;
    }
    if(eval > 0)count++;
  }
  std::cout << count;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'A' was not declared in this scope
   10 |   A.resize(N);
      |   ^
Language: Java

import java.util.Scanner;
class Main {
public static void main(String[] args){
int sc = new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
int c=sc.nextInt();
int b[] = new int[m];
for(int i=0; i<m; i++){
b[i]=sc.nextInt();
}
int a[][]=new int[n][m];
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
a[n][m]=sc.nextInt();
}}
int sum =0;
int total=0;
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
sum=sum+a[n][m]*b[m];
}
if (sum+c>0)
total++;
sum=0;
}
System.out.println(total);
}}


Compiler output:
Main.java:4: error: incompatible types: Scanner cannot be converted to int
int sc = new Scanner(System.in);
         ^
Main.java:5: error: int cannot be dereferenced
int n=sc.nextInt();
        ^
Main.java:6: error: int cannot be dereferenced
int m=sc.nextInt();
        ^
Main.java:7: error: int cannot be dereferenced
int c=sc.nextInt();
        ^
Main.java:10: error: int cannot be dereferenced
b[i]=sc.nextInt();
       ^
Main.java:15: error: int cannot be dereferenced
a[n][m]=sc.nextInt();
          ^
6 errors
Language: Java

import java.util.Scanner;
class Main {
public static void main(String[] args){
int sc = new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
int c=sc.nextInt();
int b[] = new int[m];
for(int i=0; i<m; i++){
b[i]=sc.nextInt();
}
int a[][]=new int[n][m];
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
a[n][m]=sc.nextInt();
}}
int sum =0;
int total=0;
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
sum=sum+a[n][m]*b[m];
}
if (sum+c>0)
total++;
sum=0;
}}
System.out.println(total);
}}


Compiler output:
Main.java:27: error: <identifier> expected
System.out.println(total);
                  ^
Main.java:27: error: <identifier> expected
System.out.println(total);
                        ^
Main.java:28: error: class, interface, enum, or record expected
}}
 ^
3 errors
Language: C++

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

int main () {
  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];
    }
  }
  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:24: error: expected ';' before '}' token
   21 |       sum+=a[i][j]*b[j]
      |                        ^
      |                        ;
   22 |     }
      |     ~
Language: Java

import java.awt.font.NumericShaper.Range;
import java.util.*;

public class q2{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int M = scan.nextInt();
        int C = scan.nextInt();
        int[] B = new int[M];
        for(int i = 0; i<M; i++){
            B[i] = scan.nextInt();
        }

        int count = 0;
        int[][] A = new int[N][M];
        for(int row = 0; row < N; row++){
            for(int col = 0; col < M; col++){
                A[row][col] = scan.nextInt();
            }

            int sum = 0;
            for(int i = 0; i < M; i++){
                sum += A[row][i] * B[i];
            }
            sum += C;

            if(sum > 0){
                count++;
            }
        }

        System.out.print(count + "\n");
    }

    
}

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

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int m = sc.nextInt();
    int c = sc.nextInt();
    int[] b = new int[m];
    for(int i = 0; i < m; i++) {
      b[i] = sc.nextInt();
    }
    int ans = 0;
    for(int i = 0; i < n; i++) {
      int p = 0;
      for(int j = 0; j < m; j++) {
        int a = sc.nextInt();
        p += (a * b[j]);
      }
      if(p > 0) ans++;
    }
    System.out.println(ans);
  }

Compiler output:
Main.java:23: error: reached end of file while parsing
  }
   ^
1 error
Language: C++

#include <iostream>
#include <numeric>

#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)


using namespace std;
int main() {
 int n, m, c;
 cin >> n >> m >> c;
 int b[m];
 rep(i,m-1){
   cin >> b[i];
 }
  
 int a[n][m];
 rep(j,n){
   rep(k,m){
     cin >> a[j][k];
   }
 }
  rep(l,n){
    int ans=0;
    int sum=accumulate(a[l], a[l]+m, 0);
    sum=sum+c;
    if(sum>0) 
      ans++;
  }
  cout << ans; 
 return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int N, M, C, count=0;
  cin >> N >> M >> C;
  vector <int> A(M+1);
  vector <int> B(M+1);
  int cal;
  for (int i=1; i<=M; i++)
  {
    cin >> B.at(i);
  }
  
  for (int i=1; i<=N; i++)
  {
    for (int j=1; j<=M; j++)
    {
      cin >> A.at(j);
    }
    cal=C;
    for (int j=1; j<=M; j++)
    {
      C += A,at(j) * B.at(j);
    }
    if (C>0)
    {
      count++;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:9: error: no match for 'operator+=' (operand types are 'int' and 'std::vector<int>')
   24 |       C += A,at(j) * B.at(j);
      |       ~~^~~~
a.cc:24:14: error: 'at' was not declared in this scope
   24 |       C += A,at(j) * B.at(j);
      |              ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int N, M, C, count=0;
  cin >> N >> M >> C;
  vector <int> A(M+1);
  vector <int> B(M+1);
  int cal;
  for (int i=1; i<=M; i++)
  {
    cin >> B.at(i)
  }
  
  for (int i=1; i<=N; i++)
  {
    for (int j=1; j<=M; j++)
    {
      cin >> A.at(j)
    }
    cal=C;
    for (int j=1; j<=M; j++)
    {
      C += A,at(j) * B.at(j);
    }
    if (C>0)
    {
      count++;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected ';' before '}' token
   12 |     cin >> B.at(i)
      |                   ^
      |                   ;
   13 |   }
      |   ~                
a.cc:19:21: error: expected ';' before '}' token
   19 |       cin >> A.at(j)
      |                     ^
      |                     ;
   20 |     }
      |     ~                
a.cc:24:9: error: no match for 'operator+=' (operand types are 'int' and 'std::vector<int>')
   24 |       C += A,at(j) * B.at(j);
      |       ~~^~~~
a.cc:24:14: error: 'at' was not declared in this scope
   24 |       C += A,at(j) * B.at(j);
      |              ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n,m,c,i,j,sum,count=0;
  	cin>>n>>m>>c;
  	vector<int> b(n);
    for(i=0;i<m;i++){
		cin>>b.at(i);
    }
  	vector<int> a(n)(m);
  	for(i=0;i<n;i++){
      for(j=0;j<m;j++){
		cin>>a.at(i)(j);
      }
    }
  
	for(i=0;i<n;i++){
      sum=0;
      for(j=0;j<m;j++){
		sum+=a.at(i)(j)*b.at(j);
      }
      if(sum+c>0){
		count++;
      }
    }
  
  		cout<<count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected ',' or ';' before '(' token
   10 |         vector<int> a(n)(m);
      |                         ^
a.cc:13:29: error: expression cannot be used as a function
   13 |                 cin>>a.at(i)(j);
      |                      ~~~~~~~^~~
a.cc:20:29: error: expression cannot be used as a function
   20 |                 sum+=a.at(i)(j)*b.at(j);
      |                      ~~~~~~~^~~
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:10:35: error: 'a' undeclared (first use in this function)
   10 |                         sum[i] += a[i][j];
      |                                   ^
main.c:10:35: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:31: error: expected ';' before '}' token
   12 |                 sum[i] += B[i]
      |                               ^
      |                               ;
   13 |         }
      |         ~