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);
  int asn = 0;
  for(int i=0;i<M;i++) cin >> b[i];
  vector<vector<int>> v(N,vector<int>(M));
  for(int i=0;i<M;i++){
    int sum=0;
    for(int j=0;j<N;j++){
      cin >> v[i][j];
      sum += b[j]*v[i][j];
    }
    if(sum + C > 0) ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: 'ans' was not declared in this scope; did you mean 'asn'?
   17 |     if(sum + C > 0) ans++;
      |                     ^~~
      |                     asn
a.cc:19:11: error: 'ans' was not declared in this scope; did you mean 'asn'?
   19 |   cout << ans << endl;
      |           ^~~
      |           asn
Language: C++

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

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

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

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

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


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

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

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

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

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

int main(){
  int n,m,c,in,count=0,ans;
  cin >> n >> m >> c;
  for(int i=0; i<n; i++){
    ans=c;
    for(int j=0; j<m; j++){
      cin >> in;
      ans += in;
              }
    if(ans>0)  count++;
              }
  cout << count << ensl;
}
              

Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: 'ensl' was not declared in this scope
   15 |   cout << count << ensl;
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define in insert
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int INF = 1e9 + 5;
int main(){
    int n , m;
    cin >> n >> m;
        cin >> c;
    int b[m];
    forn(i, m) cin >> b[i];
    int c;
    int cnt = 0;
    int a[m];
    forn(i, n){
        int s = 0;
        for(int j = 0; j < m; j++) {
            cin >> a[j];
            s += a[j]*b[j];
        }
        if(s > c) cnt++;
        
    }
    cout << cnt;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: 'c' was not declared in this scope
   15 |         cin >> c;
      |                ^
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++){  
    vector<vector<int>> a(n, vector<int>(m));
  for(int i=0;i<n;i++){
    for(int j=0;j<m;j++){
      cin >> data.at(i).at(j);
    }
  }
  int sum;
  int cnt = 0;
  for(int i=0;i<n;i++){
    sum = 0;
    for(int j=0;j<m;j++){
      sum += b.at(j) * a.at(i).at(j);
    }
    if(sum > (-1) * c){
      cnt++;
    }
  }
  cout << cnt << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: overloaded function with no contextual type information
   12 |       cin >> data.at(i).at(j);
      |                   ^~
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i=0;i<n;i++){
      |       ^
a.cc:13:18: error: expected ';' before '}' token
   13 |       s += k*b[j]
      |                  ^
      |                  ;
   14 |     }
      |     ~
Language: C++

import numpy as np
n,m,c = list(map(int,input().split()))
b = np.array([list(map(int,input().split()))]).T
co_li = []
for x in range(n):
    co_li.append(list(map(int,input().split())))
a = np.array(co_li)
ans_li = np.dot(a,b) - (-1 * c)
print(np.count_nonzero(ans_li > 0))


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: no match for call to '(std::vector<int>) (int&)'
    9 |     cin >> b(i);
      |            ~^~~
a.cc:14:17: error: no match for call to '(std::vector<int>) (int&)'
   14 |       x += a * b(j);
      |                ~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,M,C;
  cin >> N >> M >> C;
  int sum=0;
  int B[M],A[M];
  for(int i=0;i<M;i++){
    cin >> B[i];
  }
  for(int i=0;i<N;i++){
    int bab=0;
    for(int j=0;j<M;j++){
      cin >> A[i];
      bab+=A[i]*B[i]
    }
    bab+=C;
    if(bab>0)sum+=1;
  }
  cout << sum <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: expected ';' before '}' token
   16 |       bab+=A[i]*B[i]
      |                     ^
      |                     ;
   17 |     }
      |     ~
Language: C++

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

int main() {
	int n = 0;
	int m = 0;
	int c = 0;
	int seki = 0;
	int ans = 0;
	cin >> n >> m >> c;
	vector<int>B(m);
	for (int i = 0; i < m; i++) {
		cin >> B[i];
	}
	vector<int>A(n,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++) {
		for (int j = 0; j < m; j++) {
			seki += B[j] * A[j];
		}
		if (seki + c > 0) {
			ans +=1 ;
		}
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:36: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   19 |                         cin >> A[i][j];
      |                                    ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: invalid type argument of unary '*' (have 'int')
   15 |       sum+=a[i][j]**b[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];
  }
  int cnt = 0;
  for(int i = 0; i < n; ++i)
  {
    long long sum  = 0;
  	for(int j = 0; j < m; ++j)
    {
    	cin >> a;
      	sum += a*B[i];
    }
    if(sum + c > 0)
      cnt++;
  }
  cout << cnt << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: 'a' was not declared in this scope
   19 |         cin >> a;
      |                ^
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[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 < N; i++){
      sum += A[i][j] * B[j];
    }
  }
  if(sum + C > 0){
    ans++;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:6: error: 'sum' was not declared in this scope
   25 |   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);
  
  int sum=0;
  
  
  for(int i=0;i<M;i++){
    cin>>B.at(i);
  }
  
  int x;
 
  
  for(int j=0;j<N;j++){
    int sum=0;
    vector<int> S;

  for(int i=0;i<M;i++){
    
 cin>>S.at(i);
    S.at(i)*B.at(i)+=sum;
    if(i==M-1&&sum+C>0){
      x++;
    }
  }
  }
  
    cout<<x<<endl;
}

  
  
  

      
    
  
  
  
    
    
      
    
    



Compiler output:
a.cc: In function 'int main()':
a.cc:27:12: error: lvalue required as left operand of assignment
   27 |     S.at(i)*B.at(i)+=sum;
      |     ~~~~~~~^~~~~~~~
Language: C++

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

int main(){
  int N,M,C;
  cin>>N>>M>>C;
  
  vector<int>B(M);
  
  int sum=0;
  
  
  for(int i=0;i<M;i++){
    cin>>B.at(i);
  }
  
  int x;
  int sum=0;
  
  for(int j=0;j<N;j++){
    vector<int> S;

  for(int i=0;i<M;i++){
    
 cin>>S.at(i);
    S.at(i)*B.at(i)+=sum;
    if(i==M-1&&sum+C>0){
      x++;
    }
  }
    cout<<x<<endl;
  }
  
  

      
    
  
  
  
    
    
      
    
    



Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: redeclaration of 'int sum'
   18 |   int sum=0;
      |       ^~~
a.cc:10:7: note: 'int sum' previously declared here
   10 |   int sum=0;
      |       ^~~
a.cc:26:12: error: lvalue required as left operand of assignment
   26 |     S.at(i)*B.at(i)+=sum;
      |     ~~~~~~~^~~~~~~~
a.cc:32:4: error: expected '}' at end of input
   32 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int N,M,C;
  cin>>N>>M>>C;
  
  vector<int>B(M);
  
  int sum=0;
  
  
  for(int i=0;i<M;i++){
    cin>>B.at(i);
  }
  
  for(int i=0;i<N;i++){
   vector<int> Ai(N);
  }
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
   cin>>Ai.at(j);
      int sumi=0;
      Ai.at(j)+=sumi;
     if(sumi>=0){
       sum++;
     break;
    }
    }
    
      cout<<sum<<endl;
  }
  
  
  
  
    
    
      
    
    



Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'Ai' was not declared in this scope; did you mean 'i'?
   22 |    cin>>Ai.at(j);
      |         ^~
      |         i
a.cc:32:4: error: expected '}' at end of input
   32 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int N,M,C;
  cin>>N>>B>>C;
  
  vector<int>B(N);
  
  int sum=0;
  
  
  for(int i=0;i<N;i++){
    cin>>B.at(i);
  }
  
  for(int i=0;i<N;i++){
   vector<int> Ai(N);
  }
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
   cin>>Ai.at(j);
      int sumi=0;
      Ai.at(j)+=sumi;
     if(sumi>=0){
       sum++;
     break;
    }
      cout<<sum<<endl;
  }
  
  
  
  
    
    
      
    
    



Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'B' was not declared in this scope
    6 |   cin>>N>>B>>C;
      |           ^
a.cc:22:9: error: 'Ai' was not declared in this scope; did you mean 'i'?
   22 |    cin>>Ai.at(j);
      |         ^~
      |         i
a.cc:30:4: error: expected '}' at end of input
   30 |   }
      |    ^
a.cc:20:23: note: to match this '{'
   20 |   for(int i=0;i<N;i++){
      |                       ^
a.cc:30:4: error: expected '}' at end of input
   30 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before ')' token
    9 |   for(int i=0; i<n,i++) {
      |                       ^
      |                       ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: array must be initialized with a brace-enclosed initializer
    9 |   int c[n]=k;
      |            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: conflicting declaration 'int c [n]'
    9 |   int c[n]=c;
      |       ^
a.cc:4:11: note: previous declaration as 'int c'
    4 |   int n,m,c;
      |           ^
a.cc:14:8: error: invalid types 'int[int]' for array subscript
   14 |       c[j]+=b[i]*a[j][i];
      |        ^
a.cc:16:9: error: invalid types 'int[int]' for array subscript
   16 |     if(c[j]>0){ans++;}
      |         ^
Language: C++

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

int main(){
  int n,m,c; cin>>n >>m >>c;
  vector<int> b(m);
  vector<vector<int>> a(n,vector<int>m);
  
  for(int i=0;i<m;i++){
    cin>>b.at(i);
  }
  
  for(int i=0;i<n;i++){
    for(int j=0;j<m;j++){
      cin>>a.at(i).at(j);
    }
  }
  int sum = 0;
  int count=0;
  
  for(int i=0;i<n;i++){
    sum = 0;
    for(int j=0;j<m;j++){
      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:7:38: error: expected primary-expression before 'm'
    7 |   vector<vector<int>> a(n,vector<int>m);
      |                                      ^
Language: C

#include <stdio.h>

int main() {
  int m, n, c;
  scanf("%d %d", &m, &n);
  int cnt = 0;

  int b[25];
  for (int i = 0; i < m; i++) {
    scanf("%d", &b[i]);
  }

  int a[25][25];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      scanf("%d", &a[i][j]);
    }
  }

  for (i = 0; i < n; i++) {
    int sum = 0;
    // scanf("%d", &b[i]);

    for (j = 0; j < m; j++) {
      sum += a[i][j] * b[j];
      // scanf("%d", &a[i][j]);
    }

    sum += c;
    if (sum > 0) {
      cnt++
    }
  }
  printf("%d\n", cnt);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:8: error: 'i' undeclared (first use in this function)
   20 |   for (i = 0; i < n; i++) {
      |        ^
main.c:20:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:10: error: 'j' undeclared (first use in this function)
   24 |     for (j = 0; j < m; j++) {
      |          ^
main.c:31:12: error: expected ';' before '}' token
   31 |       cnt++
      |            ^
      |            ;
   32 |     }
      |     ~
Language: C++

	#include <bits/stdc++.h>

	typedef long long ll;
	using namespace std;

	int main(){
		int n,m,c;
		cin >> n >> m >> c;
		int c = 0;
		ll s = 0;
		vector <int> b;
		for(int i=0; i < m;i++){
			int t;
			cin >> t;
			b.push_back(t);
		}

		while(n--){
			s = 0;
			for(int i=0;i<m;i++){
				int t;
				cin >> t;
				s += t*b[i]; 
			}
			s += c;
			if(s >0){
				c++;
			}
		}
		cout << c <<endl;

		return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: redeclaration of 'int c'
    9 |                 int c = 0;
      |                     ^
a.cc:7:25: note: 'int c' previously declared here
    7 |                 int n,m,c;
      |                         ^
Language: C

#include <stdio.h>

int main(){
  int N; scanf("%d", &N);
  int M; scanf("%d", &M);
  int C; scanf("%d", &C);
  int count = 0;
  int value = 0;
  int i, j;
  int B[20] = {};
  int A;
  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);
      value += B[j] * A;
    }
    if(value + C > 0) count++;
  }

  printf("%d", count);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:24: error: expected ')' before ';' token
   12 |   for(i = 0; i < M; i++;){
      |      ~                 ^
      |                        )
Language: C

#include <stdio.h>

int main(){
  int N; scanf("%d", &N);
  int M; scanf("%d", &M);
  int C; scanf("%d", &C);
  int count = 0;
  int value = 0;
  int i, j;
  int B[20] = {};
  int A;
  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);
      value += B[j] * A;
    }
    if(value + C > 0) count++;
  }

  printf("%d", count);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:23: error: expected expression before ';' token
   12 |   for(i = 0; i < M; i+;){
      |                       ^
Language: C++

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

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

#include <iostream>
#include <vector>

int main() {
  int N,M,C;
  std::cin >> N >> M >> C;
  using IntV = std::vector<int>;
  IntV B(M);
  for(auto &b:B)
    std::cin >> b;
  IntV A(N*M);
  for(auto &a:A)
    std::cin >> a;
  auto itr_a = A.begin();
  int cnt = 0;
  for(int i=0;i<N;i++){
    auto itr_b = b.begin();
    int sum=0;
    for(int j=0;j<M;j++)
      sum += *itr_a++ * *itr_b++;
    if(cnt>-C)cnt++;
  }
  std::cout << cnt << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: 'b' was not declared in this scope
   17 |     auto itr_b = b.begin();
      |                  ^
Language: C++

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

int main(){
  int n,m,c,sum,count=0; //n,m,c,sum,countの入力
  cin>>n >>m >>c;
  
  vector<int> b;　//bの入力
  for(int i=0;i<m;i++){
    cin>>b.at(i);
  }
  
  vector<vector<int>> a(n,vector<int>(m)); //aの入力
  for(int i=0;i<n;i++){
    for(int j=0;j<m;j++){
      cin>>a.at(i).at(j);
    }
  }
  
  for(int i=0;i<n;i++){
    for(int j=0;j<m;j++){
      sum = a.at(i).at(j) * b.at(j)
    }
    if(sum + c > 0){
      count++;
    }
  }
  cout<<count<<endl;
}

Compiler output:
a.cc:8:17: error: extended character 　 is not valid in an identifier
    8 |   vector<int> b;　//bの入力
      |                 ^
a.cc: In function 'int main()':
a.cc:8:17: error: '\U00003000' was not declared in this scope
    8 |   vector<int> b;　//bの入力
      |                 ^~
a.cc:9:15: error: 'i' was not declared in this scope
    9 |   for(int i=0;i<m;i++){
      |               ^
a.cc:22:36: error: expected ';' before '}' token
   22 |       sum = a.at(i).at(j) * b.at(j)
      |                                    ^
      |                                    ;
   23 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
#include<string>
using namespace std;
int main(){
    int N,M,C;
    vector<int>B(M,0);
    //N*Mの配列を作成
    //Aはvector<int>(M)で初期化
    //これをvector<int>(M)で初期化
    vector<vector<int>>A(N,vector<int>(M));
    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 ans+=A[i][j]*B[j];
        }
    if(0<ans+C){
        int cnt+=1;
        ans=0;
    }
    }
    cout<<cnt<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: expected initializer before '+=' token
   21 |             int ans+=A[i][j]*B[j];
      |                    ^~
a.cc:23:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |     if(0<ans+C){
      |          ^~~
      |          abs
a.cc:24:16: error: expected initializer before '+=' token
   24 |         int cnt+=1;
      |                ^~
a.cc:28:11: error: 'cnt' was not declared in this scope; did you mean 'int'?
   28 |     cout<<cnt<<endl;
      |           ^~~
      |           int
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
#include<string>
using namespace std;
int main(){
    int N,M,C;
    vector<int>B(M,0);
    //N*Mの配列を作成
    //Aはvector<int>(M)で初期化
    //これをvector<int>(M)で初期化
    vector<vector<int>>A(N,vector<int>(M))
    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 ans+=A[i][j]*B[j]
        }
    if(0<ans+c){
        int cnt++;
        ans=0;
    }
    }
    cout<<cnt<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected ',' or ';' before 'cin'
   14 |     cin>>N>>M>>C;
      |     ^~~
a.cc:16:18: error: expected ';' before '}' token
   16 |         cin>>B[i]
      |                  ^
      |                  ;
   17 |     }
      |     ~             
a.cc:20:25: error: expected ';' before 'int'
   20 |             cin>>A[i][j]
      |                         ^
      |                         ;
   21 |             int ans+=A[i][j]*B[j]
      |             ~~~          
a.cc:23:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |     if(0<ans+c){
      |          ^~~
      |          abs
a.cc:23:14: error: 'c' was not declared in this scope
   23 |     if(0<ans+c){
      |              ^
a.cc:24:16: error: expected initializer before '++' token
   24 |         int cnt++;
      |                ^~
a.cc:28:11: error: 'cnt' was not declared in this scope; did you mean 'int'?
   28 |     cout<<cnt<<endl;
      |           ^~~
      |           int
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: '\U000000ednt' was not declared in this scope
    5 |         ínt N,M,C;
      |         ^~~
a.cc:6:15: error: 'M' was not declared in this scope
    6 |         int B[M];
      |               ^
a.cc:7:34: error: 'B' was not declared in this scope
    7 |         for(int i=0;i<M;i++)cin>>B[i];
      |                                  ^
a.cc:9:23: error: 'N' was not declared in this scope
    9 |         for(int i=0;i<N;i++)
      |                       ^
a.cc:11:27: error: 'C' was not declared in this scope
   11 |                 int ans = C;
      |                           ^
a.cc:15:32: error: 'B' was not declared in this scope
   15 |                         ans += B[j]*a;
      |                                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:27: error: expected ';' before '}' token
   15 |       S += A.at(j)*B.at(j)
      |                           ^
      |                           ;
   16 |     }
      |     ~
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.at(i);
  }
  int A[N][M];
  for(int i=0;i<N;i++){
    cin >> A.at(i);
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: request for member 'at' in 'A', which is of non-class type 'int [N][M]'
   12 |     cin >> A.at(i);
      |              ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<N;i++){
      |       ^
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=0;i<N;i++){
      |       ^
a.cc:12:14: error: request for member 'at' in 'A', which is of non-class type 'int [N][M]'
   12 |     cin >> A.at(i);
      |              ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<N;i++){
      |       ^
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=0;i<N;i++){
      |       ^
a.cc:12:14: error: request for member 'at' in 'A', which is of non-class type 'int [N][M]'
   12 |     cin >> A.at(i);
      |              ^~
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include <stdio.h>
int main(void)
{
  int n,m,c;
  int a[21][21];
  int b[21];
  int i,j;
  int count=0;
  int sum;
  
  scanf("%d%d%d",&n,&m,&c);
 
  sum = c;
  for (j=1; j<=n; j++){
  	for (i=1; i<=m; i++){
    scanf("%d",&b[i]);
    scanf("%d",&a[j][i]);
    sum = sum + a[j][i]*b[i];
    	if (sum > 0){
      		count++;
    }
  }

  printf("%d",count);
    
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include <stdio.h>
int main(void)
{
  int n,m,c;
  int a[21][21];
  int b[21];
  int i,j;
  int count=0;
  int sum;
  
  scanf("%d%d%d",&n,&m,&c);
 
  sum = c;
  for (j=1; j<=n; j++){
  	for (i=1; i<=m; i++){　　//横
    scanf("%d",&b[i]);
    scanf("%d",&a[j][i]);
    sum = sum + a[j][i]*b[i];
    	if (sum > 0){
      		count++;
    }
  }

  printf("%d",count);
    
  return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:15:30: error: stray '\343' in program
   15 |         for (i=1; i<=m; i++){<U+3000><U+3000>//<U+6A2A>
      |                              ^~~~~~~~
main.c:15:32: error: stray '\343' in program
   15 |         for (i=1; i<=m; i++){<U+3000><U+3000>//<U+6A2A>
      |                                      ^~~~~~~~
main.c:27:3: error: expected declaration or statement at end of input
   27 |   }
      |   ^
Language: C

#inclcude <stdio.h>
int main(void)
{
  int n,m,c;
  int a[21][21];
  int b[21];
  int i,j;
  int count=0;
  int sum;
  
  scanf("%d%d%d",&n,&m,&c);
 
  sum = c;
  for (j=1; j<=n; j++){
  	for (i=1; i<=m; i++){　　//横
    scanf("%d",&b[i]);
    scanf("%d",&a[j][i]);
    sum = sum + a[j][i]*b[i];
    	if (sum > 0){
      		count++;
    }
  }

  printf("%d",count);
    
  return 0;
  }

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclcude; did you mean #include?
    1 | #inclcude <stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:11:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |   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 | #inclcude <stdio.h>
main.c:11:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |   scanf("%d%d%d",&n,&m,&c);
      |   ^~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:30: error: stray '\343' in program
   15 |         for (i=1; i<=m; i++){<U+3000><U+3000>//<U+6A2A>
      |                              ^~~~~~~~
main.c:15:32: error: stray '\343' in program
   15 |         for (i=1; i<=m; i++){<U+3000><U+3000>//<U+6A2A>
      |                                      ^~~~~~~~
main.c:24:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   24 |   printf("%d",count);
      |   ^~~~~~
main.c:24:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:24:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:27:3: error: expected declaration or statement at end of input
   27 |   }
      |   ^
Language: C

#inlcude <stdio.h>
int main(void)
{
  int n,m,c;
  int a[21][21];
  int b[21];
  int i,j;
  int count=0;
  int sum;
  
  scanf("%d%d%d",&n,&m,&c);
 
  sum = c;
  for (j=1; j<=n; j++){
  	for (i=1; i<=m; i++){　　//横
    scanf("%d",&b[i]);
    scanf("%d",&a[j][i]);
    sum = sum + a[j][i]*b[i];
    	if (sum > 0){
      		count++;
    }
  }

  printf("%d",count);
    
  return 0;
  }

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:11:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |   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 | #inlcude <stdio.h>
main.c:11:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |   scanf("%d%d%d",&n,&m,&c);
      |   ^~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:30: error: stray '\343' in program
   15 |         for (i=1; i<=m; i++){<U+3000><U+3000>//<U+6A2A>
      |                              ^~~~~~~~
main.c:15:32: error: stray '\343' in program
   15 |         for (i=1; i<=m; i++){<U+3000><U+3000>//<U+6A2A>
      |                                      ^~~~~~~~
main.c:24:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   24 |   printf("%d",count);
      |   ^~~~~~
main.c:24:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:24:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:27:3: error: expected declaration or statement at end of input
   27 |   }
      |   ^
Language: C

#inlcude <stdio.h>
int main(void)
{
  int n,m,c;
  int a[21][21];
  int b[21];
  int i,j;
  int count=0;
  int sum;
  
  scanf("%d%d%d",&n,&m,&c);
  
  for (j=1; j<=n; j++){
  	for (i=1; i<=m; i++){　　//横
    scanf("%d",&b[i]);
    scanf("%d",&a[j][i]);
    }
  }

  i=0;
  j=0;
  sum = c;
  for (j=1; j<=n; j++){
  	for (i=1; i<=m; i++){
    	sum = sum + a[j][i]*b[i];
    	if (sum > 0){
      		count++;
    	}
  }
    
  printf("%d",count);
    
  return 0;
  }

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:11:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |   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 | #inlcude <stdio.h>
main.c:11:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |   scanf("%d%d%d",&n,&m,&c);
      |   ^~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:14:30: error: stray '\343' in program
   14 |         for (i=1; i<=m; i++){<U+3000><U+3000>//<U+6A2A>
      |                              ^~~~~~~~
main.c:14:32: error: stray '\343' in program
   14 |         for (i=1; i<=m; i++){<U+3000><U+3000>//<U+6A2A>
      |                                      ^~~~~~~~
main.c:31:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   31 |   printf("%d",count);
      |   ^~~~~~
main.c:31:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:31:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:34:3: error: expected declaration or statement at end of input
   34 |   }
      |   ^
Language: C

#inlcude <stdio.h>
int main(void)
{
  int n,m,c;
  int a[21][21];
  int b[21];
  int count=0;
  int sum;
  
  scanf("%d%d%d",&n,&m,&c);
  
  for (j=1; j<=n; j++){
  	for (i=1; i<=m; i++){　　//横
    scanf("%d",&b[i]);
    scanf("%d",&a[j][i]);
    }
  }

  i=0; //初期化
  j=0;
  sum = c;
  for (j=1; j<=n; j++){
  	for (i=1; i<=m; i++){
    	sum = sum + a[j][i]*b[i];
    	if (sum > 0){
      		count++;
    	}
  }
    
  printf("%d",count);
    
  return 0;
  }

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |   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 | #inlcude <stdio.h>
main.c:10:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 |   scanf("%d%d%d",&n,&m,&c);
      |   ^~~~~
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:8: error: 'j' undeclared (first use in this function)
   12 |   for (j=1; j<=n; j++){
      |        ^
main.c:12:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:14: error: 'i' undeclared (first use in this function)
   13 |         for (i=1; i<=m; i++){　　//横
      |              ^
main.c:13:30: error: stray '\343' in program
   13 |         for (i=1; i<=m; i++){<U+3000><U+3000>//<U+6A2A>
      |                              ^~~~~~~~
main.c:13:32: error: stray '\343' in program
   13 |         for (i=1; i<=m; i++){<U+3000><U+3000>//<U+6A2A>
      |                                      ^~~~~~~~
main.c:30:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   30 |   printf("%d",count);
      |   ^~~~~~
main.c:30:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:30:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:30:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:33:3: error: expected declaration or statement at end of input
   33 |   }
      |   ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
using namespace std;
 
int main()
{
  int N, M, C;
  cin >> N >> M >> C;
  
  vector<int> B;
  int b;
  for( i = 0; i < M; i++ ){
    cin >> b;
    B.push_back(b);
  }
  
  int a;
  int sum = 0;
  int cnt = 0;
  
  for( i = 0; i < N; i++ ){
    for( j = 0; j < M; j++ ){
      cin >> a;
      sum += a * B[j];
    }
    sum += C;
    if( sum > 0 ){ cnt++; }
    sum = 0;
  }
  
  cout << cnt;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'i' was not declared in this scope
   14 |   for( i = 0; i < M; i++ ){
      |        ^
a.cc:23:8: error: 'i' was not declared in this scope
   23 |   for( i = 0; i < N; i++ ){
      |        ^
a.cc:24:10: error: 'j' was not declared in this scope
   24 |     for( j = 0; j < M; j++ ){
      |          ^
Language: C++

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

int main()
{
  int N, M, C;
  cin >> N >> M >> C;
  
  vector<int> B;
  int b;
  for( i = 0; i < M; i++ ){
    cin >> b;
    B.puch_back(b);
  }
  
  int a;
  int sum = 0;
  int cnt = 0;
  
  for( i = 0; i < N; i++ ){
    for( j = 0; j < M; j++ ){
      cin >> a;
      sum += a * B[j];
    }
    sum += C;
    if( sum > 0 ){ cnt++; }
    sum = 0;
  }
  
  cout << cnt;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'i' was not declared in this scope
   14 |   for( i = 0; i < M; i++ ){
      |        ^
a.cc:16:7: error: 'class std::vector<int>' has no member named 'puch_back'; did you mean 'push_back'?
   16 |     B.puch_back(b);
      |       ^~~~~~~~~
      |       push_back
a.cc:23:8: error: 'i' was not declared in this scope
   23 |   for( i = 0; i < N; i++ ){
      |        ^
a.cc:24:10: error: 'j' was not declared in this scope
   24 |     for( j = 0; j < M; j++ ){
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: expected ';' before '}' token
   16 |       sum += (a[i] * b[i])
      |                           ^
      |                           ;
   17 |     }
      |     ~
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<M;i++){
    for(int j=0;j<N;j++){
      cin >> A[i][j];
    }
  }
  int ans =0;
  for(int i=0;i<N;i++){
    int sum = 0;
    for(int =0;j<M;j++){
      sum += A[i][j]*B[j];
    }
  if(ans + C > 0){
    ans++;
  }
  }
  cout << ans << endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected unqualified-id before '=' token
   19 |     for(int =0;j<M;j++){
      |             ^
a.cc:19:12: error: expected ';' before '=' token
   19 |     for(int =0;j<M;j++){
      |            ^~
      |            ;
a.cc:19:13: error: expected primary-expression before '=' token
   19 |     for(int =0;j<M;j++){
      |             ^
a.cc:19:16: error: 'j' was not declared in this scope
   19 |     for(int =0;j<M;j++){
      |                ^
a.cc:19:19: error: expected ')' before ';' token
   19 |     for(int =0;j<M;j++){
      |        ~          ^
      |                   )
a.cc:19:20: error: 'j' was not declared in this scope
   19 |     for(int =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);
  vector<vector<int>> A(N,vector<int>(M));
  for(int i=0;i<M;i++){
    cin >> B.at(i);
  }
  for(int i=0;i<N;i++){
    for(int j=0;j<M;j++){
      cin>> A.at(i).at(j);
    }
  }
  int ans=0;
  int check=0;
  for(int i=0;i<N;i++){
    for(int j=0;j<M;j++){
      check=check+B.at(j)*A.at(i).at(j);
    }
    if(check+C>0){
      ans++;
    }
    check=0
  }
  cout << ans <<endl;
}
      
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:25:12: error: expected ';' before '}' token
   25 |     check=0
      |            ^
      |            ;
   26 |   }
      |   ~
Language: C

#include <stdio.h>

int main(void)
{
    int i, n, m, c;
    scanf("%d%d%d", &n, &m, &c);
    int a[n][m], b[m];

    for ( i = 0; i < m; i++)
        scanf("%d", &b[i]);
    
    for ( i = 0; i < n; i++)
    {
        for (int j = 0; j < m; j++)
        {
            scanf("%d", &a[i][j]);
        }
    }

    int cnt = 0;
    for ( 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)
            cnt++;
    }

    printf("%d\n", cnt);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:9: error: expected ',' or ';' before 'for'
   24 |         for (int j = 0; j < m; j++)
      |         ^~~
main.c:24:25: error: 'j' undeclared (first use in this function)
   24 |         for (int j = 0; j < m; j++)
      |                         ^
main.c:24:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:35: error: expected ';' before ')' token
   24 |         for (int j = 0; j < m; j++)
      |                                   ^
      |                                   ;
main.c:24:35: error: expected statement before ')' token
Language: C++

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

int main(){
    int n, m, c;
    cin>>n>>m>>c;
    int b[m];
    int a[n][m];
    int ans=0;
    int betu = 0;

    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; j<m; j++){
            betu += b[j] * a[i][j];
        }
        betu += c;
        if(betu>0){
            ans++;
        }
        betu = 0;
    }
    cout<<ans<<endl;


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: expected ';' before '}' token
   17 |             cin>>a[i][j]
      |                         ^
      |                         ;
   18 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N, M, C;
  cin >> N >> M >> C;
  int B[M];
  for(int i = 1; i <= M) cin >> B[i];
  int A[N][M];
  for(int i = 1; i <= N; i++ )for(int j = 1; j <= M; j++)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 > 0)ans++;
  }
  cout << ans <<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ';' before ')' token
    7 |   for(int i = 1; i <= M) cin >> B[i];
      |                        ^
      |                        ;
Language: C

#include<stdio.h>

int main(){
  int n,m,c,i,j,kari,kotae=0;
  scanf("%d%d%d",&n,&m,&c);
  int a[m],b[m];
  for(i=0;i<m;i++){
    scanf("%d",&b[i]);
  }
  for(j=0,j<n,j++){
    kari=0;
    for(i=0;i<m;i++){
      scanf("%d",&a[i]);
      kari+=a[i]*b[i];
    }
    if(kari+c>0){
      kotae++;
    }
  }
  printf("%d",kotae);
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected ';' before ')' token
   10 |   for(j=0,j<n,j++){
      |                  ^
      |                  ;
main.c:10:18: error: expected expression before ')' token
Language: Java

import java.util.*;
class Main {
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N =	Integer.parseInt(sc.next());
	int M =	Integer.parseInt(sc.next());
	int C =	Integer.parseInt(sc.next());
	int[] b	= new int[N];
	for(int i = 0; i<N; i++) {
            b[i] = Integer.parseInt(sc.next());
	}
	int cnt	= 0;
        for(int i = 0; i<M; i++) {
            int	tmp = 0;
	    for(int j = 0; j<N; j++) {
		tmp += sc.nextInt() * b[i]
            }
            tmp	+= c;
            if(tmp>0) cnt++;
        }
	System.out.println(cnt);
    }
}

Compiler output:
Main.java:16: error: ';' expected
		tmp += sc.nextInt() * b[i]
		                          ^
1 error
Language: C++

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

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int N,M,C,cnt;
    cin >> N >> M >> C;
    vector<int> B;
    for(int i=0; i<M; i++){
        int x;
        cin >> x;
        B.push_back(x);
    }

    for(int i=0; i<N; i++){
        int s=C;
        for(int j = 0; j < M; j++)
        {
            int x;
            cin >> x;
            s += x * B[j];
        }
        //cout << s;
        if (s>0) cnt++;
    }
    
    cout << cnt;

    for(int i = 0; i < 10**9; i++)
    {
        int s=0;
        s = 1;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:27: error: invalid type argument of unary '*' (have 'int')
   32 |     for(int i = 0; i < 10**9; i++)
      |                           ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'c' was not declared in this scope; did you mean 'cf'?
    6 |  cin>>a>>b>>c;
      |             ^
      |             cf
a.cc:10:3: error: 'f' was not declared in this scope
   10 |   f=0;
      |   ^
Language: C++

#include<iostream>
#include<vector>

using namespace std;

int main(void){
  int n,m,c;
  vector <int> a,b;
  int i,j,k;
  int ans,sum;
  
  cin>>n>>m>>c;
  for(i=0;i<m;i++){
    a.push_back(0);
  }
  for(i=0;i<m,i++){
    cin>>j;
    b.push_back(j);
  }
  for(i=0;i<n;i++){
    for(j=0;j<m;j++){
      cin>>k;
      a[j]=k;
    }
    for(j=0;j<m;j++){
      ans+=a[j]*b[j];
    }
    ans+=c;
    (ans>0?sum++:);
  }
  cout<<sum<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: expected ';' before ')' token
   16 |   for(i=0;i<m,i++){
      |                  ^
      |                  ;
a.cc:29:18: error: expected primary-expression before ')' token
   29 |     (ans>0?sum++:);
      |                  ^
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:16:11: error: ordered comparison of pointer with integer zero ('int*' and 'int')
   16 |   if(sum+c>0) count++;
      |      ~~~~~^~