criyle/codenet-compile-errors huggingface dataset:
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] ;
          if(sum＋c>0) {
            ans++ ;
          }
      }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:14: error: 'sum\U0000ff0bc' was not declared in this scope
   23 |           if(sum＋c>0) {
      |              ^~~~~~
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=c ;
      for (int j=0; j<m ;j++){
        sum=+ A[i][j]*B[j] ;
          if(sum>0) {
            ans++
          }
      }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: expected ';' before '}' token
   24 |             ans++
      |                  ^
      |                  ;
   25 |           }
      |           ~
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=c ;
      for (int j=0; j<m ;j++){
        sum=+ A[i][j]*B[j] ;
          if(sum>o) {
            ans++
          }
      }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:18: error: 'o' was not declared in this scope
   23 |           if(sum>o) {
      |                  ^
a.cc:24:18: error: expected ';' before '}' token
   24 |             ans++
      |                  ^
      |                  ;
   25 |           }
      |           ~
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=c ;
      for (int j=0; j<m ;j++){
        sum=+ A[i][j]*B[j]
          if(sum>o) {
            ans++
          }
      }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:27: error: expected ';' before 'if'
   22 |         sum=+ A[i][j]*B[j]
      |                           ^
      |                           ;
   23 |           if(sum>o) {
      |           ~~
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=c
      for (int j=0; j<m ;j++){
        sum=+ A[i][j]*B[j]
          if(sum>o) {
            ans++
          }
      }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: expected ',' or ';' before 'for'
   21 |       for (int j=0; j<m ;j++){
      |       ^~~
a.cc:21:21: error: 'j' was not declared in this scope
   21 |       for (int j=0; j<m ;j++){
      |                     ^
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(iont j=0 ;j<m ;j++){
       cin >> A[i][j] ;
     }
   }
  int ans=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>o) {
            ans++
          }
      }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'iont' was not declared in this scope; did you mean 'int'?
   14 |      for(iont j=0 ;j<m ;j++){
      |          ^~~~
      |          int
a.cc:14:20: error: 'j' was not declared in this scope
   14 |      for(iont j=0 ;j<m ;j++){
      |                    ^
a.cc:21:7: error: expected ',' or ';' before 'for'
   21 |       for (int j=0; j<m ;j++){
      |       ^~~
a.cc:21:21: error: 'j' was not declared in this scope
   21 |       for (int j=0; j<m ;j++){
      |                     ^
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(iont j=0 ;j<m ,j++){
       cin >> A[i][j] ;
     }
   }
  int ans=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>o) {
            ans++
          }
      }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: expected ';' before ')' token
   13 |    for (int i=0; i<n , i++ ) {
      |                           ^~
      |                           ;
a.cc:14:10: error: 'iont' was not declared in this scope; did you mean 'int'?
   14 |      for(iont j=0 ;j<m ,j++){
      |          ^~~~
      |          int
a.cc:14:20: error: 'j' was not declared in this scope
   14 |      for(iont j=0 ;j<m ,j++){
      |                    ^
a.cc:14:28: error: expected ';' before ')' token
   14 |      for(iont j=0 ;j<m ,j++){
      |                            ^
      |                            ;
a.cc:19:26: error: expected ';' before ')' token
   19 |   for (int i=0 ; i<n ,i++){
      |                          ^
      |                          ;
a.cc:21:7: error: expected ',' or ';' before 'for'
   21 |       for (int j=0; j<m ,j++){
      |       ^~~
a.cc:21:21: error: 'j' was not declared in this scope
   21 |       for (int j=0; j<m ,j++){
      |                     ^
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(iont j=0 ;j<m ,j++){
       cin >> A[i][j] ;
     }
   }
  int ans=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>o) {
            ans++
          }
      }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: 'N' was not declared in this scope
   12 |   vector<vector<int>> A(N,vector<int>(m)) ;
      |                         ^
a.cc:13:27: error: expected ';' before ')' token
   13 |    for (int i=0; i<n , i++ ) {
      |                           ^~
      |                           ;
a.cc:14:10: error: 'iont' was not declared in this scope; did you mean 'int'?
   14 |      for(iont j=0 ;j<m ,j++){
      |          ^~~~
      |          int
a.cc:14:20: error: 'j' was not declared in this scope
   14 |      for(iont j=0 ;j<m ,j++){
      |                    ^
a.cc:14:28: error: expected ';' before ')' token
   14 |      for(iont j=0 ;j<m ,j++){
      |                            ^
      |                            ;
a.cc:19:26: error: expected ';' before ')' token
   19 |   for (int i=0 ; i<n ,i++){
      |                          ^
      |                          ;
a.cc:21:7: error: expected ',' or ';' before 'for'
   21 |       for (int j=0; j<m ,j++){
      |       ^~~
a.cc:21:21: error: 'j' was not declared in this scope
   21 |       for (int j=0; j<m ,j++){
      |                     ^
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,cnt=0;
  cin >> N >> M >> C;
  vector<int> B(M);
  vector<vector<int>> A(N,vector<int>(M));
  rep(i,M)
    cin >> b.at(i);
  rep(i,N)
    rep(j,M)
      cin >> A.at(i).at(j);
  rep(i,N){
    int num = 0;
    rep(j,M){
      num += A.at(i).at(j) * B.at(j);
    }
    if(num+C > 0)
      ++cnt;
  }
  cout << cnt;
}

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

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rep2(i,s,n) for (int i = s; i < n; ++i)
#define all(a) a.begin(),a.end()
using namespace std;
using ll = long long;
using P = pair<int,int>;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: expected ';' before 'int'
   13 |     rep(i,m) cin >> b[i]
      |                         ^
      |                         ;
   14 |     int ans = 0;
      |     ~~~                  
a.cc:22:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |         if(sum > 0) ans++;
      |                     ^~~
      |                     abs
a.cc:24:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
using namespace std;
const int INF= 1e9+5;
typedef long long ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected ',' or ';' before 'for'
   14 |   for(int i=0;i<m;i++)cin>>a[i];
      |   ^~~
a.cc:14:15: error: 'i' was not declared in this scope
   14 |   for(int i=0;i<m;i++)cin>>a[i];
      |               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'b' was not declared in this scope
    7 |     b[m];
      |     ^
a.cc:11:5: error: 'a' was not declared in this scope
   11 |     a[n][m];
      |     ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected ',' or ';' before 'for'
   14 |     for(int j=0;j<M;j++){
      |     ^~~
a.cc:14:17: error: 'j' was not declared in this scope
   14 |     for(int j=0;j<M;j++){
      |                 ^
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:1:11: fatal error:  bits / stdc ++. h : No such file or directory
    1 | # include < bits / stdc ++. h >
      |           ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

n, m, c = map(int, input().split())
b = list(map(int, input().split()))
ans = 0
for i in range(n):
    now = c
    a = list(map(int, input().split()))
    for j in range(m):
        now += a[j] * b[j]
    ans += now > 0
print(ans)


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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define rep(i,n) for(ll (i)=0; i<(n); ++(i))
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  ll n,m,c,ans=0,val=0;cin>>n>>m>>c;
  ll a(m,0),b(m,0);
  rep(i,m) cin>>b[i];
  rep(i,n) {
    val=c;
    rep(i,m) cin>>a[i];
    rep(i,m) val+=a[i]*b[i];
    if(val>0) ans++;
  }
  print(ans);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expression list treated as compound expression in initializer [-fpermissive]
   12 |   ll a(m,0),b(m,0);
      |           ^
a.cc:12:18: error: expression list treated as compound expression in initializer [-fpermissive]
   12 |   ll a(m,0),b(m,0);
      |                  ^
a.cc:13:18: error: invalid types 'long long int[long long int]' for array subscript
   13 |   rep(i,m) cin>>b[i];
      |                  ^
a.cc:16:20: error: invalid types 'long long int[long long int]' for array subscript
   16 |     rep(i,m) cin>>a[i];
      |                    ^
a.cc:17:20: error: invalid types 'long long int[long long int]' for array subscript
   17 |     rep(i,m) val+=a[i]*b[i];
      |                    ^
a.cc:17:25: error: invalid types 'long long int[long long int]' for array subscript
   17 |     rep(i,m) val+=a[i]*b[i];
      |                         ^
Language: C++

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

#define int long long
int ans;
int a[2000];
signed main(){
  int n,m,c;
  cin >> n >> m >> c;
  
  for(int i = 1;i<=m;i++)cin >> a[i];
  
  for(int j = 1;j<=n;j++){
    int temp = 0;
    for(int i = 1;<=m;i++){
    int b;
    cin >> b;
    temp+=b*a[i];
    }
    if(temp>0)ans++;
  }
  
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: expected primary-expression before '<=' token
   15 |     for(int i = 1;<=m;i++){
      |                   ^~
Language: C++

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

#define int long long
int ans;
signed main(){
  int n,m,c;
  cin >> n >> m >> c;
  
  for(int i = 1;i<=m;i++)cin >> a[i];
  
  for(int j = 1;j<=n;j++){
    int temp = 0;
    for(int i = 1;<=m;i++){
    int b;
    cin >> b;
    temp+=b*a[i];
    }
    if(temp>0)ans++;
  }
  
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: 'a' was not declared in this scope
   10 |   for(int i = 1;i<=m;i++)cin >> a[i];
      |                                 ^
a.cc:14:19: error: expected primary-expression before '<=' token
   14 |     for(int i = 1;<=m;i++){
      |                   ^~
a.cc:17:13: error: 'a' was not declared in this scope
   17 |     temp+=b*a[i];
      |             ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: expected ';' before '}' token
   17 |       k = k + a*b[j]
      |                     ^
      |                     ;
   18 |     }
      |     ~
Language: Java

import java.util.Scanner;

public class B {

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

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

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

int b[25], a[25];

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:35: error: invalid types 'int[int]' for array subscript
   13 |     for (int i = 1; i <= m; i++) v[i] += a[i] * b[i];
      |                                   ^
Language: C++

#include<iostream>
using namespace std;
#include<vector>
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 cnt=0;
  for(int i=0;i<n;i++){
    int res=c;
    for(Int j=0;j<m;j++){
      int a;
      cin>>a;
      res+=a*b[j];
    }
    if(res>0) cnt++;
  }
  cout<<cnt<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'Int' was not declared in this scope; did you mean 'int'?
   13 |     for(Int j=0;j<m;j++){
      |         ^~~
      |         int
a.cc:13:17: error: 'j' was not declared in this scope
   13 |     for(Int j=0;j<m;j++){
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
  
int main() {
  int N,M,C,n=0,a=0;
  cin >>N >>M >>C;
  vector<int> B(M);
  vector<int> A(M);
  vector<int> M(M);
  for(int i=0;i<M;i++){
    cin >>B[i];
  }
  for(int i=0;i<N;i++){
    for(int i=0;i<M;i++){
      cin >> A.at(i);
    }
    for(int i=0;i<M;i++){
      vecM.at(i) =vecA.at(i)*vecB.at(i);
    }
    n=0;
    for(int i=0;i<M;i++){
      n += vecM.at(i);
    }
    if((n+C)>0){
      a++;
    }else{
    }
  }
  cout << a;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: conflicting declaration 'std::vector<int> M'
    9 |   vector<int> M(M);
      |               ^
a.cc:5:9: note: previous declaration as 'int M'
    5 |   int N,M,C,n=0,a=0;
      |         ^
a.cc:18:7: error: 'vecM' was not declared in this scope
   18 |       vecM.at(i) =vecA.at(i)*vecB.at(i);
      |       ^~~~
a.cc:18:19: error: 'vecA' was not declared in this scope
   18 |       vecM.at(i) =vecA.at(i)*vecB.at(i);
      |                   ^~~~
a.cc:18:30: error: 'vecB' was not declared in this scope
   18 |       vecM.at(i) =vecA.at(i)*vecB.at(i);
      |                              ^~~~
a.cc:22:12: error: 'vecM' was not declared in this scope
   22 |       n += vecM.at(i);
      |            ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
void add(vector vecB, int n){
  vector vecA(vecB.size())
  for(int i=0;i<vecB.size();i++){
    cin >> vec1.at(i);
  }
  for(int i=0;i<vecB.size();i++){
    vecM.at(i) =vecA.at(i)*vecB.at(i);
  }
  int n=0;
  for(int i=0;i<vecB.size();i++){
    n += vecM.at(i);
  }
  return;
}
  
int main() {
  int N,M,C,n=0,a=0;
  cin >>N >>M >>C;
  vector<int> B;
  for(int i=0;i<M;i++){
    cin >>B[i]
  }
  for(int i=0;i<N;i++){
    add(B, n);
    if((n+C)>0){
      a++;
    }else{
    }
    n=0;
  } 
}


Compiler output:
a.cc:3:10: error: missing template argument list after 'std::vector'; template placeholder not permitted in parameter
    3 | void add(vector vecB, int n){
      |          ^~~~~~
      |                <>
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:428:11: note: 'template<class _Tp, class _Alloc> class std::vector' declared here
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
a.cc: In function 'void add(...)':
a.cc:4:15: error: 'vecB' was not declared in this scope; did you mean 'vecA'?
    4 |   vector vecA(vecB.size())
      |               ^~~~
      |               vecA
a.cc:5:3: error: expected ',' or ';' before 'for'
    5 |   for(int i=0;i<vecB.size();i++){
      |   ^~~
a.cc:5:15: error: 'i' was not declared in this scope
    5 |   for(int i=0;i<vecB.size();i++){
      |               ^
a.cc:9:5: error: 'vecM' was not declared in this scope
    9 |     vecM.at(i) =vecA.at(i)*vecB.at(i);
      |     ^~~~
a.cc:11:7: error: declaration of 'int n' shadows a parameter
   11 |   int n=0;
      |       ^
a.cc:3:27: note: 'int n' previously declared here
    3 | void add(vector vecB, int n){
      |                       ~~~~^
a.cc:13:10: error: 'vecM' was not declared in this scope
   13 |     n += vecM.at(i);
      |          ^~~~
a.cc: In function 'int main()':
a.cc:23:15: error: expected ';' before '}' token
   23 |     cin >>B[i]
      |               ^
      |               ;
   24 |   }
      |   ~
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 a[n][m];
  int s[m],t=cc;
  for(int i=0;i<n;i++){
    s[i]=0;
    for(int j=0;j<m;j++){
      cin >> a[i][j];
      s[i]+=a[i][j]*b[i];
    }
    if(s[i]>0){
      t++;
    }
  }
  cout << t;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'cc' was not declared in this scope; did you mean 'c'?
   11 |   int s[m],t=cc;
      |              ^~
      |              c
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  int n,m,c;
  cin>>n>>m>>c;
  int b[m];
  int i;
  for(i=0;i<m;i++)
    cin>>b[m];
  int a=0;co=0,j,x;
  for(i=0;i<n;i++){
    a=0;
    for(j=0;j<m;j++){
      cin>>x;
      a+=b[m]*x;
    }
    if(a+c>0)
      co++;
  }
  cout<<co;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'co' was not declared in this scope; did you mean 'c'?
   10 |   int a=0;co=0,j,x;
      |           ^~
      |           c
a.cc:10:16: error: 'j' was not declared in this scope
   10 |   int a=0;co=0,j,x;
      |                ^
a.cc:10:18: error: 'x' was not declared in this scope
   10 |   int a=0;co=0,j,x;
      |                  ^
Language: C++

#include <stdc++.h>
using namespace std;
int main (){
  int n,m,c;
  cin>n>>m>>c;
  int b[m];
  int i;
  for(i=0;i<m;i++)
    cin>>b[m];
  int a=0;co=0,j,x;
  for(i=0;i<n;i++){
    a=0;
    for(j=0;j<m;j++){
      cin>>x;
      a+=b[m]*x;
    }
    if(a+c>0)
      co++;
  }
  cout<<co;
  return 0;
}

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

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    String[] hiki = scan.nextLine(" ");
    int N = Integer.parseInt(hiki[0]);
    int M = Integer.parseInt(hiki[1]);
    int C = Integer.parseInt(hiki[2]);
    hiki = scan.nextLine(" ");
    int[] B = new int[M];
    for(int i = 0;i < M;i ++){
      B[i] = Integer.parseInt(hiki[i]);
    }
    int count = 0;
    for(int i = 0;i < N;i ++){
      int tmp = 0;
      hiki = scan.nextLine();
      for(int j = 0;j < M;j ++){
        tmp += Integer.parseInt(hiki[j]) * B[j];
      }
      tmp += C;
      if(tmp > 0){
        count ++;
      }
    }
    System.out.println(count);
  }
}

Compiler output:
Main.java:6: error: method nextLine in class Scanner cannot be applied to given types;
    String[] hiki = scan.nextLine(" ");
                        ^
  required: no arguments
  found:    String
  reason: actual and formal argument lists differ in length
Main.java:10: error: method nextLine in class Scanner cannot be applied to given types;
    hiki = scan.nextLine(" ");
               ^
  required: no arguments
  found:    String
  reason: actual and formal argument lists differ in length
Main.java:18: error: incompatible types: String cannot be converted to String[]
      hiki = scan.nextLine();
                          ^
3 errors
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[] a=new int[m];
    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++){
      for(int j=0;j<m;j++){
        a[j]=sc.nextInt();
      }
      int sum=0;
      for(int j=0;j<m;j++){
        sum+=a[j]*b[j];
      }
      sum+=c;
      if(sum>0){
        ans++;
      }
    }
    Sysem.out.println(ans);
  }
}

Compiler output:
Main.java:28: error: package Sysem does not exist
    Sysem.out.println(ans);
         ^
1 error
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];
  }
  int count=0;
  for(int i=0;i<n;i++){
    int sum=0;
    vector<int> a(n);
    for(int j=0;j<m;j++){
      cin >> a[i];
      sum += b[i]*a[i];
    }
    if(sum+c>0){
      count++
    }
  }
  cout << count << endl;
}

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

#include<iostream>
using namespace std;
int main(){
  int n, m, c, a[100], b[100];
  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 >> a[i][j];
    }
  }
  int cnt = 0;
  for(int i=0; i<n; i++){
    int tmp = 0;
    for(int j=0; j<m; j++){
      tmp += a[i][j] * b[j];
    }
    if(tmp + c > 0){
      cnt ++;
    }
  }
  cout << cnt << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: invalid types 'int[int]' for array subscript
   11 |       cin >> a[i][j];
      |                  ^
a.cc:18:18: error: invalid types 'int[int]' for array subscript
   18 |       tmp += a[i][j] * b[j];
      |                  ^
Language: C++


#include<iostream>
#include<bits/stdc++.h>
#include<string>
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[n][m];
    }
  }

  int ans = 0 ;
  
  for(int i=0;i<n;i++){
    int cnt  = 0 ;
    for(int j=0;j<m;j++){
      cnt += A[i][j]*B[j]  ;
    }
    if((cnt+c)>0){
      ans++ ;
    }
    
  }
  
  cout << ans << endl;
  return 0 ;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: 'N' was not declared in this scope
   16 |   vector <vector <int>> A(N, vector <int >(M));
      |                           ^
a.cc:16:44: error: 'M' was not declared in this scope
   16 |   vector <vector <int>> A(N, vector <int >(M));
      |                                            ^
Language: C++

#include <bits/stdc++.h>
#define rp(i,n) for(int i=0; i < n; i++)
using namespace std;
int main(){
  int n,m,c;
  cin >> n >> m >> c;
  int b[m];
  rp(i,m) cin >> b[i];
  int a[n][m];
  rp(i,n){
    for(int j=0; j < m; j++){
      cin >> a[i][j];
    }
  int ans = 0;
  rp(i,n){
    int x = c;
    	for(int j=0; j < m; j++){
      		x += a[i][j]*b[j];
        }
    if(x > 0) ans++;
  }
    cout << ans << endl;
  }
	

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

#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<cmath>
#include<tuple>
#include<string>
typedef unsigned long long ll;
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define F first
#define S second
using namespace std;
const ll INF = 1e12;
const int i_INF = 2147483647;

int main() {
  int n,m,c;
  cin>>n>>m>>c;
  int b[21];
  int a[21][21];
  int ans=0;
  rep(i,0,m)cin>>b[i];
  rep(i,0,n)rep(j,0,m)cin>>a[i][j];
  rep(i,0,n){
    int sum=c;
    rep(i,0,m)sum+=a[i][j];
    if(sum>0)ans++;
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:25: error: 'j' was not declared in this scope
   26 |     rep(i,0,m)sum+=a[i][j];
      |                         ^
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];
}
if (sum + C > 0) {
2
++ans;
}
}

cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:1: error: lvalue required as increment operand
   24 | 2
      | ^
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];
}
if (sum + C > 0) {
2
++ans;
}
}

cout << ans << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:24:1: error: lvalue required as increment operand
   24 | 2
      | ^
a.cc:29:21: error: expected '}' at end of input
   29 | cout << ans << endl;
      |                     ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

int main() {
    int a, b,c,d[10],e[30][30],f,g;
    cin >> a >> b>>c;
  for(int j =0;j<b;j++)
    cin >> d[i];
  for(int i =0;i<a;i++){
    for(int j =0;j<b;j++)
      cin >>e[i][j];
  }
  f =0;
  
   for(int i =0;i<a;i++){
     g =0;
    for(int j =0;j<b;j++){
      g += e[i][j]*d[j];
      
      if(g+c>0){
        f ++;
      }
    }
   }
  cout << f << endl;
}

    
    

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

#include<stdio.h>
 
int main(void) {
  int a, n, m, N, M, C, answer = 0;
  int A[21][21], B[21];
  
  scanf("%d %d %d", &N, &M, &C);
  for(m=0;m<M;m++) {
    scanf("%d", B[m]);
  }
  for(n=0;n<N;n++) {
    for(m=0;m<M;m++) {
    	scanf("%d", A[n][m]);
      	answer = answer + (A[n][m] * B[m]);
    }
    answer > -C) {
      a++;
       answer = 0;
    }
  }
  
  printf("%d", a);
 return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:16:16: error: expected ';' before ')' token
   16 |     answer > -C) {
      |                ^
      |                ;
main.c:16:16: error: expected statement before ')' token
Language: C

#inclued<stdio.h>
 
int main(void) {
  int a, n, m, N, M, C;
  int A[21][21], B[21], AB[21];
  
  scanf("%d %d %d", &N, &M, &C);
  for(m=0;m<M;m++) {
    scanf("%d", B[m]);
  }
  for(n=0;n<N;n++) {
    for(m=0;m<M;m++) {
    	scanf("%d", A[n][m]);
      	AB[n] =+ (A[n][m] * B[m]);
    }
    if(AB[n] > -C) {
      a++;
    }
  }
  
  printf("%d", a);
 return 0;
  }

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclued; did you mean #include?
    1 | #inclued<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d %d %d", &N, &M, &C);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclued<stdio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d %d %d", &N, &M, &C);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:21:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   21 |   printf("%d", a);
      |   ^~~~~~
main.c:21:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:21:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#inclued<stdio.h>

int main(void) {
  int a, n, m, N, M, C;
  int A[21], B[21], AB[21];
  
  scanf("%d %d %d", &N, &M, &C);
  for(m=0;m<M;m++) {
    scanf("%d", B[m]);
  }
  for(n=0;n<N;n++) {
    for(m=0;m<M;m++) {
    	scanf("%d", A[n][m]);
      	AB[n] =+ (A[n][m] * B[m]);
    }
    if(AB[n] > -C) {
      a++;
    }
  }
  
  printf("%d", a);
 return 0;
  }

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclued; did you mean #include?
    1 | #inclued<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d %d %d", &N, &M, &C);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclued<stdio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d %d %d", &N, &M, &C);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:25: error: subscripted value is neither array nor pointer nor vector
   13 |         scanf("%d", A[n][m]);
      |                         ^
main.c:14:23: error: subscripted value is neither array nor pointer nor vector
   14 |         AB[n] =+ (A[n][m] * B[m]);
      |                       ^
main.c:21:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   21 |   printf("%d", a);
      |   ^~~~~~
main.c:21:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:21:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(void) {
  int n, m, c, z;
  int a[21][21], b[21], answer[21];
  
  scanf("%d %d %d", &n, &m, &c);
    
  for(i = 0;i < m;i++) {
    scanf("%d", b[i]);
  }
  
  for(i = 0;i < n;i++) {
    for(u = 0;u < n;u++) {
      scanf("%d", a[i][u]);
    }
  }
  
  for(u = 0;u < n;u++) {
    for(i = 0;i < m;i++) {
      answer[u] = a[u][i] + b[i];
    }
    if(answer[u] > -100) {
      z++;
    }
  }
  
  printf("%d", z);
  
  return 0;
}

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

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


int main (){
    int N, M, C;
    cin>>N>>M>>C;
    vector<int> B(N);
    for(int i=0; i<N; i++){
        cin>>B(N);
    }
    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 Count=0;
    for(int i=0; i<N;i++){
        int Sum=C;
        for(int j=0; j<M; j++){
            Sum+=A.at(i).at(j)*B.at(j);
        }
        if(Sum>0){
            Count ++;
        }

    }
    cout<<Count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: no match for call to '(std::vector<int>) (int&)'
   10 |         cin>>B(N);
      |              ~^~~
Language: C

#include <iostream>
using namespace std;
int main ()
{
	int code, test, key, ans, count=0, tries;
	scanf ("%d %d %d", &test, &code, &key);
	int key1[code];
	for (int k=0; k<code; k++) scanf ("%d", &key1[k]);
	for (int i=0; i<test; i++)
	{
		for (int j=0; j<code; j++)
		{
			scanf ("%d", &tries);
			ans+=(tries*key1[j]);
		}
		if ((ans+key)>0) count++;
		ans=0;
	}
	printf ("%d\n", count);
	return 0;
}

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;
typedef long long ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:21: error: 'q' was not declared in this scope
   21 |     cout<<ans<<endl;q
      |                     ^
Language: C++

#include<stdio.h>
int main()
{
	int N, M, C;
	int A[30][30];
	int sum[30] = { 0 };
	int count = 0;
	scanf("%d%d%d", &N, &M, &C);
	for (int i = 0; i <= N; i < 0) {
		for (int j = 0; j < M; j++) {
			scanf("%d", &A[i][j]);
			if (i != 0) {
				sum[i] += A[i][j] * A[0][j];
			}
		}
		if (sum[i]+C > 0&&i!=0) {
			count++;
		}
	
	printf("%d", count);
	return 0;
}

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

#include<stdio.h>
int main()
{
	int N, M, C;
	int A[30][30];
	int sum[30] = { 0 };
	int count = 0;
	scanf("%d%d%d", &N, &M, &C);
	for (int i = 0; i <= N; i < 0) {
		for (int j = 0; j < M; j++) {
			scanf("%d", &A[i][j]);
			if (i !== 0) {
				sum[i] += A[i][j] * A[0][j];
			}
		}
		if (sum[i]+C > 0&&i!=0) {
			count++;
		}
	}
	printf("%d", count);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: expected primary-expression before '=' token
   12 |                         if (i !== 0) {
      |                                 ^
Language: C++

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

int main() {
	int n,m,c;
	cin >> n >> m >> c;
	vector<int>B(m);
	rep(i, m) {
		cin >> B[i];
	}
	for (int i = 0;i < n;++i) {
		vector<int>A(m);
		for (int i = 0;i < m;++i) {
			cin >> A[i];
		}
		int res = c;
		for (int i = 0;i < m;++i) {
			res += A[i] * B[i];
		}
		int ans = 0;
		if (res > 0)++ans;
	}
	cout << ans << endl;
}

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

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

int main() {
	int n,m,c;
	cin >> n >> m >> c;
	vector<int>B(m);
	rep(i, m) {
		cin >> B[i];
	}
	for (int i = 0;i < n;++i) {
		vector<int>A(m);
		for (int i = 0;i < m;++i) {
			cin >> A[i];
		}
		int res = c;
		for (int i = 0;i < m;++i) {
			res += A[i] * B[i];
		}
		int ans = 0;
		if (res >> 0)++ans;
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: 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;

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);
  int cnt=0;
  for(int i=0;i<n;i++){
    int sum=0;
    for(int j=0;j<m;j++){
      int k;
      cin>>k;
      sum+=b.at(j)k;
    }
    if(sum+c>0) cnt++;
  }
  cout<<cnt<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: expected ';' before 'k'
   15 |       sum+=b.at(j)k;
      |                   ^
      |                   ;
Language: C++

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

int main(){
	int N, M, C;
	cin >> N >> M >> C;
	vector<int> B(N);
	for(int i = 0; i < N; i++) cin >> B.at(i);
	vector<vector<int>> B(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 cnt = 0;
	
	for(int i = 0; i < N; i++){
		int Code = C;
		for(int j = 0; j < M; j++){
			Code += (A.at(i).at(j) * B.at(j));
		}
		if(Code > 0) cnt++;
	}
	cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: conflicting declaration 'std::vector<std::vector<int> > B'
    9 |         vector<vector<int>> B(N, vector<int>(M));
      |                             ^
a.cc:7:21: note: previous declaration as 'std::vector<int> B'
    7 |         vector<int> B(N);
      |                     ^
a.cc:12:32: error: 'A' was not declared in this scope
   12 |                         cin >> A.at(i).at(j);
      |                                ^
a.cc:21:34: error: 'A' was not declared in this scope
   21 |                         Code += (A.at(i).at(j) * B.at(j));
      |                                  ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: conflicting declaration 'std::vector<std::vector<int> > B'
    9 |         vector<vector<int>> B(M, vector<int>(N));
      |                             ^
a.cc:7:21: note: previous declaration as 'std::vector<int> B'
    7 |         vector<int> B(N);
      |                     ^
a.cc:12:32: error: 'A' was not declared in this scope
   12 |                         cin >> A.at(i).at(j);
      |                                ^
a.cc:21:34: error: 'A' was not declared in this scope
   21 |                         Code += (A.at(i).at(j) * B.at(j));
      |                                  ^
Language: C

#include <stdio.h>

int main()
{
       
    int N; 
    int M ;
    int C ;
    scanf("%d%d%d",&N,&M,&C);
    int arr[N][M];
    int arr2[M];
    for(int j =0 ; j<M ;j++){
        scanf("%d",&arr2[j]);
    }
    int sum , count =0;
    int i, j ;
    for(i=0 ; i<N ; i++){
       sum = 0 ;
      for(j =0 ; j<M ;j++){
        scanf("%d",&arr[i][j]);
        sum+=arr[i][j]*arr2[j];
      }
       if(sum+C > 0){
        count++;
      }

    }
    
    printf("%d",count);
    
    

Compiler output:
main.c: In function 'main':
main.c:29:5: error: expected declaration or statement at end of input
   29 |     printf("%d",count);
      |     ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int n,m,c,b[105],a[104][104],d[104],ans;
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++){cin>>a[i][j];d[i]+=a[i][j];}d[i]+=c;
                       if(d[i]>0)ans++;}
  cout<<ans<<endl;
                                            
  
|

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before '|' token
   12 | |
      | ^
a.cc:12:2: error: expected primary-expression at end of input
   12 | |
      |  ^
a.cc:12:2: error: expected '}' at end of input
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
int main(){
  int n,m,c;
  cin>>n>>m>>c;
  int b[m];
  rep(i,m) 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];
    }
  }
  for(int i=0;i<n;i++){
    int sum=0,ans=0;
    for(int j=0;j<m;j++){
  sum+=a[i][j]*b[j];
    }
    if(sum>0)ans++;
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   30 |   cout<<ans<<endl;
      |         ^~~
      |         abs
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 cnt = 0;
  for (int i=0;i<n;i++){
    for(int j=0;j<m;j++){
      int sum = 0;
      sum += a.at(i).at(j)*b.at(j);
    }
    sum += c;
    if (sum>0) cnt++;
  }
  
  cout << cnt << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: 'sum' was not declared in this scope
   26 |     sum += c;
      |     ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: expected primary-expression before '>' token
   16 |                 if(ans=>0) count++;
      |                        ^
Language: C

#define _CRT_SECURE_NO_WARNINGS

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

/* define */
#define Yes(X) puts ( (X) ? "Yes" : "No")
#define YES(X) puts ( (X) ? "YES" : "NO")
#define FOR(i, a, b) for ( int i = (a); i < (b) ; i++)
#define REP(i, n) for ( int i = 0; i < (n) ; i++)
#define max(a, b) (((a) > (b)) ? (a) : (b))
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max3(a, b, c) ((max((a), (b)) > (c)) ? max((a), (b)) : (c))
#define min3(a, b, c) ((min((a), (b)) < (c)) ? min((a), (b)) : (c))

/* const */
const int MOD = 1000000007;

/* alias */
typedef long long ll;
typedef unsigned  u;

/* function */
int cmp(const void *a, const void *b) {
	return *(int*)a - *(int*)b;
}
int cmp2(const void *a, const void *b) {
	return *(int*)b - *(int*)a;
}
int gcd(int a, int b) {
	if (b != 0)return gcd(b, a % b);
	return a;
}
ll Lgcd(ll a, ll b) {
	if (b != 0) return Lgcd(b, a % b);
	return a;
}
int lcm(int a, int b) {
	return a / gcd(a, b) * b;
}
ll Llcm(ll a, ll b) {
	return a / Lgcd(a, b) * b;
}

/* main */

int main() {
	int n, m, c, a[20][20], b[20], r = 0;
	scanf("%d%d%d", &n, &m, &c);
	REP(i, m) scanf("%d", &b[i]);
	REP(i, n)REP(j, m) scanf("%d", &a[i][j]);
	REP(i, n) {
		int t = c;
		REP(j, m) t += a[i][j] * b[j];
		if (t > 0) r++;
	}
	printf("%d", t);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:59:22: error: 't' undeclared (first use in this function)
   59 |         printf("%d", t);
      |                      ^
main.c:59:22: note: each undeclared identifier is reported only once for each function it appears in