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

#include <stdio.h>

int main(int argc, const char * argv[]) {
    int n, m, c, i, t, k, l, w, soc=0, clr=0;
    int bsum[0][50];
    int sum[50][50];
    scanf("%d %d %d", &n, &m, &c);
    
    for(i=0;i<=m;i++){
        scanf("%d", &bsum[0][i]);
    }
    for(t=0;t<=n;t++){
        for(k=0;k<=m;k++){
            scanf("%d", &sum[t][k]);
        }
    }
    for(l=1;l<=n;l++){
        for(w=1;w<=m;w++){
            soc += sum[l][w]*bsum[0][w];
        }
        if(soc>0){
            clr++;
        }
        soc = 0;
    }
    printf("%d", clr);
    return 0;


Compiler output:
main.c: In function 'main':
main.c:27:5: error: expected declaration or statement at end of input
   27 |     return 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 = 0;
    for (int j=0; j<M; j++) {
      sum += A[i][j]*B[i];
    }
    if (sum+C>0) {
      ans++;
    }
  }
  cout << ans << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '<<' token
    5 |   int << N,M,C;
      |       ^~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N >> M >> C;
      |          ^
a.cc:6:15: error: 'M' was not declared in this scope
    6 |   cin >> N >> M >> C;
      |               ^
a.cc:6:20: error: 'C' was not declared in this scope
    6 |   cin >> N >> M >> C;
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:33: error: expected primary-expression before 'B'
    4 | int N, M, C; cin >> vector<int> B(M); for (int i = 0; i <
      |                                 ^
a.cc:5:8: error: 'B' was not declared in this scope
    5 | cin >> B[i]; }
      |        ^
a.cc:5:14: error: expected primary-expression before '}' token
    5 | cin >> B[i]; }
      |              ^
a.cc:5:13: error: expected ')' before '}' token
    5 | cin >> B[i]; }
      |             ^~
      |             )
a.cc:4:43: note: to match this '('
    4 | int N, M, C; cin >> vector<int> B(M); for (int i = 0; i <
      |                                           ^
a.cc:5:14: error: expected primary-expression before '}' token
    5 | cin >> B[i]; }
      |              ^
a.cc: At global scope:
a.cc:7:3: error: expected initializer before '>>' token
    7 | N >> M >> C; M; ++i) {
      |   ^~
a.cc:7:14: error: 'M' does not name a type
    7 | N >> M >> C; M; ++i) {
      |              ^
a.cc:7:17: error: expected unqualified-id before '++' token
    7 | N >> M >> C; M; ++i) {
      |                 ^~
Language: C

#include <stdio.h>

int main(void)
{
  int n,m,c,i,j,tmp,ans=0;

  scanf("%d %d %d\n",&n,&m,&c);

  int b[m],a[n][m];

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

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

  printf("%d",ans);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:17:4: error: stray '\' in program
   17 |   }\n
      |    ^
main.c:17:6: error: expected ';' before '}' token
   17 |   }\n
      |      ^
      |      ;
   18 |   }
      |   ~
Language: C++

#include <iostream>
#include <vector>

int main() {
  int N;
  int M;
  int C;
  std::vector<int> s;

  std::cin >> N >> M >> C;

  int B;
  for (int k = 0; k < M; k++) {
    std::cin >> B;
    s.push_back(B);
  }

  int A;
  int cunt = 0;
  for (int i = 0; i < N; i++) {
    int sum = 0;
    for (int j = 0; j < M; j++) {
      std::cin >> A;
      sum = sum + A * s[j] + C;
    }
    if (tmp > 0) {
      count = count + 1;
    }
  }
  std::cout << count << std::endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:9: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   26 |     if (tmp > 0) {
      |         ^~~
      |         tm
a.cc:27:7: error: 'count' was not declared in this scope; did you mean 'cunt'?
   27 |       count = count + 1;
      |       ^~~~~
      |       cunt
a.cc:30:16: error: 'count' was not declared in this scope; did you mean 'cunt'?
   30 |   std::cout << count << std::endl;
      |                ^~~~~
      |                cunt
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

#define int long long

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

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C

#include <stdio.h>

int main(void)
{
  int n,m,c,i,j,tmp,a=0;

  scanf("%d %d %d\n",&n,&m,&c);

  int b[m],a[n][m];

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

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

  printf("%d",a);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:12: error: conflicting types for 'a'; have 'int[n][m]'
    9 |   int b[m],a[n][m];
      |            ^
main.c:5:21: note: previous definition of 'a' with type 'int'
    5 |   int n,m,c,i,j,tmp,a=0;
      |                     ^
main.c:17:4: error: stray '\' in program
   17 |   }\n
      |    ^
main.c:17:6: error: expected ';' before '}' token
   17 |   }\n
      |      ^
      |      ;
   18 |   }
      |   ~
Language: C

#include <stdio.h>

int main(void)
{
  int n,m,c,i,j,tmp,a=0;

  scanf("%d %d %d\n",&n,&m,&c);

  int b[m],a[n][m];

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

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

  printf("%d",a);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:12: error: conflicting types for 'a'; have 'int[n][m]'
    9 |   int b[m],a[n][m];
      |            ^
main.c:5:21: note: previous definition of 'a' with type 'int'
    5 |   int n,m,c,i,j,tmp,a=0;
      |                     ^
Language: C++

#include<iostream>
using namespace std;

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


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

#include <stdio.h>
#include <stdlib>
int main(void) {
	int a, b, c, f, i, j;
	int g = 0;
	int h = 0;
	scanf("%d", &a);
	scanf("%d", &b);
	scanf("%d", &c);
	int *d;
    d = (int *)malloc(b *sizeof(int));
	int *e;
    e = (int *)malloc(b *sizeof(int));
	for (j = 0; j <= a - 1; j++) {
		for (i = 0; i <= b - 1; i++) {
			scanf("%d", &d[i]); 
			scanf("%d", &e[i]);
			f = d[i] + e[i];
			g += f;
		}
 
		if (g + c > 0) {
			h++;
		}
	}
	free(d);
	free(e);
	printf("%d\n", h);
	return 0;
}

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

#include <stdio.h>
#include <stdlib>
int main(void) {
	int a, b, c, f, i, j;
	int g = 0;
	int h = 0;
	scanf("%d", &a);
	scanf("%d", &b);
	scanf("%d", &c);
	int *d;
    d = (int *)malloc(sizeof(int));
	int *e;
    e = (int *)malloc(sizeof(int));
	for (j = 0; j <= a - 1; j++) {
		for (i = 0; i <= b - 1; i++) {
			scanf("%d", &d[i]); 
			scanf("%d", &e[i]);
			f = d[i] + e[i];
			g += f;
		}

		if (g + c > 0) {
			h++;
		}
	}
	free(d);
	free(e);
	printf("%d\n", h);
	return 0;
}

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

#include <stdio.h>

int main(void) {
	int a, b, c, f, i, j;
	int g = 0;
	int h = 0;
	scanf("%d", &a);
	scanf("%d", &b);
	scanf("%d", &c);
	int *d = new int[b];
	int *e = new int[b];
	for (j = 0; j <= a - 1; j++) {
		for (i = 0; i <= b - 1; i++) {
			scanf("%d", &d[i]); 
			scanf("%d", &e[i]);
			f = d[i] + e[i];
			g += f;
		}

		if (g + c > 0) {
			h++;
		}
	}
	printf("%d\n", h);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:18: error: 'new' undeclared (first use in this function)
   10 |         int *d = new int[b];
      |                  ^~~
main.c:10:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:22: error: expected ',' or ';' before 'int'
   10 |         int *d = new int[b];
      |                      ^~~
main.c:11:22: error: expected ',' or ';' before 'int'
   11 |         int *e = new int[b];
      |                      ^~~
Language: C

#include <stdio.h>

int main() {
  int N,M,C;
  scanf("%d %d %d",&N,&M,&C);
  int B[M],A[N][M];
  for (int i = 0; i < M; i++) {
    scanf("%d",&B[i]);
  }
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < M ; j++) {
      scanf("%d",&A[i][j]);
    }
  }
  int solve = 0, cnt = 0;
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < M ; j++) {
      solve += A[i][j]*B[j]
    }
    if (solve + C > 0) cnt++;
    solve = 0;
  }
  printf("%d\n",cnt);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:28: error: expected ';' before '}' token
   18 |       solve += A[i][j]*B[j]
      |                            ^
      |                            ;
   19 |     }
      |     ~
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int ans;
    int cnt = 0;
    int num = 0;

    int n = sc.nextInt();
    int m = sc.nextInt();
    int c = sc.nextInt();
    int absc = Math.abs(c);

    ArrayList<int> B = new ArrayList<int>();

    ArrayList<int> A = new ArrayList<int>();

    ArrayList<A>  M  = new ArrayList< A >();

    for (int i = 0;i < m ;i++){
      B.add(sc.nextInt());
    }

      for (int j = 0;j < n ;j++){
        for (int i = 0;i < m ;i++){
          A.add(sc.nextInt());
        }
        M.add(A);
      }

      for ( i = 0;i < n; i++){
        for (j = 0;j < m; j++){
          num += B.get(j)* M.get(i).get(j);

          if ( num > c){
            cnt++
          }

        }
      }
      ans = cnt;

      System.out.println(ans);
    }

  }


Compiler output:
Main.java:12: error: illegal character: '\u0008'
    int n = sc.nextInt();
        ^
Main.java:12: error: not a statement
    int n = sc.nextInt();
    ^
Main.java:36: error: illegal character: '\u0008'
          num += B.get(j)* M.get(i).get(j);
                                   ^
Main.java:39: error: ';' expected
            cnt++
                 ^
4 errors
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int ans;
    int cnt = 0;
    int num = 0;

    int n = sc.nextInt();
    int m = sc.nextInt();
    int c = sc.nextInt();
    int absc = Math.abs(c);

    ArrayList<int> B = new ArrayList<int>();

    ArrayList<int> A = new ArrayList<int>();

    ArrayList<A>  M  = new ArrayList< A >();

    for (int i = 0;i < m ;i++){
      B.add(sc.nextInt());
    }

      for (int j = 0;j < n ;j++){
        for (int i = 0;i < m ;i++){
          A.add(sc.nextInt());
        }
        M.add(A);
      }

      for ( i = 0;i < n; i++){
        for (j = 0;j < m; j++){
          num += B.get(j)* M.get(i).get(j);

          if ( num > c){
            cnt++
          }

        }
      }
      ans = cnt

      System.out.println(ans);
    }

  }


Compiler output:
Main.java:12: error: illegal character: '\u0008'
    int n = sc.nextInt();
        ^
Main.java:12: error: not a statement
    int n = sc.nextInt();
    ^
Main.java:36: error: illegal character: '\u0008'
          num += B.get(j)* M.get(i).get(j);
                                   ^
Main.java:39: error: ';' expected
            cnt++
                 ^
Main.java:44: error: ';' expected
      ans = cnt
               ^
5 errors
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int ans;
    int cnt = 0;
    int num = 0;

    int n = sc.next();
    int m = sc.nextInt();
    int c = sc.nextInt();
    int absc = Math.abs(c);

    ArrayList<int> B = new ArrayList<int>();

    ArrayList<int> A = new ArrayList<int>();

    ArrayList<A>  M  = new ArrayList< A >();

    for (int i = 0;i < m ;i++){
      B.add(sc.nextInt());
    }

      for (int j = 0;j < n ;j++){
        for (int i = 0;i < m ;i++){
          A.add(sc.nextInt());
        }
        M.add(A);
      }

      for ( i = 0;i < n; i++){
        for (j = 0;j < m; j++){
          num += B.get(j)*M.get(i).get(j);

          if ( num > c){
            cnt++
          }

        }
      }
      ans = cnt

      System.out.println(ans);
    }

  }

}


Compiler output:
Main.java:12: error: illegal character: '\u0008'
    int n = sc.next();
        ^
Main.java:12: error: not a statement
    int n = sc.next();
    ^
Main.java:36: error: illegal character: '\u0008'
          num += B.get(j)*M.get(i).get(j);
                                  ^
Main.java:39: error: ';' expected
            cnt++
                 ^
Main.java:44: error: ';' expected
      ans = cnt
               ^
Main.java:51: error: class, interface, enum, or record expected
}
^
6 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ALL(x) x.begin(),x.end()

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

  int a[m][n];
  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++){
    count = 0;
    for(int j=0;j<m;j++){
      count += a[i][j]*b[j];
      //cout << count << "\n";
    }
    if(count + c > 0)ans++;
  }
  cout << ans ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: overloaded function with no contextual type information
   18 |     count = 0;
      |             ^
a.cc:20:27: error: overloaded function with no contextual type information
   20 |       count += a[i][j]*b[j];
      |                           ^
a.cc:23:14: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
   23 |     if(count + c > 0)ans++;
      |        ~~~~~~^~~
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int ans;
    int cnt = 0;
    int num = 0;

    int n = sc.nextInt();
    int m = sc.nextInt();
    int c = sc.nextInt();
    int absc = Math.abs(c);

    ArrayList<int> B = new ArrayList<int>();

    ArrayList<int> A = new ArrayList<int>();

    ArrayList<A>  M  = new ArrayList< A >();

    for (int i = 0;i < m ;i++){
      B.add(sc.nextInt());
    }

      for (int j = 0;j < n ;j++){
        for (int i = 0;i < m ;i++){
          A.add(sc.nextInt());
        }
        M.add(A);
      }

      for ( i = 0;i < n; i++){
        for (j = 0;j < m; j++){
          num += B.get(j)*M.get(i).get(j);

          if ( num > c){
            cnt++
          }

        }
      }
      ans = cnt

      System.out.println(ans);
    }

  }

}


Compiler output:
Main.java:12: error: illegal character: '\u0008'
    int n = sc.nextInt();
        ^
Main.java:12: error: not a statement
    int n = sc.nextInt();
    ^
Main.java:36: error: illegal character: '\u0008'
          num += B.get(j)*M.get(i).get(j);
                                  ^
Main.java:39: error: ';' expected
            cnt++
                 ^
Main.java:44: error: ';' expected
      ans = cnt
               ^
Main.java:51: error: class, interface, enum, or record expected
}
^
6 errors
Language: C++

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

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

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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a,b,c;
    cin >>a>>b>>c;
    int g[1000][1000];
    int bg[1000];
    int math=0;
    int count=0;
    for(int p=0;p<b;p++) {
        cin>>bg[p];
    }
    for(int i=0;i<a;i++){
        if(math+c > 0) {
                count++;
            }
    }
        math=0;
        for (int l=0;l<b;l++) {
            /* code */
            cin>> g[i][l];
            math += g[i][l]*bg[l];
            
        } 
        
    }
    
    cout << count <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:21: error: 'i' was not declared in this scope
   22 |             cin>> g[i][l];
      |                     ^
a.cc: At global scope:
a.cc:29:5: error: 'cout' does not name a type
   29 |     cout << count <<endl;
      |     ^~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int n,m,c,b_,sum=0,sum_1=0,i;
int main(){
	int b[n],d[n][m];
	cin>>n>>m>>c;
	for( i=0;i<n;i++)
	cin>>b[i];
	b_=b[n];
	for( i=0;i<n;i++)
	for(int j=0;j<m;i++)
	cin>>d[i][j];
	for(int i=0;i<n;i++){
		sum=d[i] * b[1] + d[i] * b[2] + d[i] * b[3] +c;
		if(sum>=0)sum_1++;
	}
	cout<<sum_1;
	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: invalid operands of types 'int [m]' and 'int' to binary 'operator*'
   14 |                 sum=d[i] * b[1] + d[i] * b[2] + d[i] * b[3] +c;
      |                     ~~~~ ^ ~~~~
      |                        |      |
      |                        |      int
      |                        int [m]
a.cc:14:40: error: invalid operands of types 'int [m]' and 'int' to binary 'operator*'
   14 |                 sum=d[i] * b[1] + d[i] * b[2] + d[i] * b[3] +c;
      |                                   ~~~~ ^ ~~~~
      |                                      |      |
      |                                      |      int
      |                                      int [m]
a.cc:14:54: error: invalid operands of types 'int [m]' and 'int' to binary 'operator*'
   14 |                 sum=d[i] * b[1] + d[i] * b[2] + d[i] * b[3] +c;
      |                                                 ~~~~ ^ ~~~~
      |                                                    |      |
      |                                                    |      int
      |                                                    int [m]
Language: C++

18 -13#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+1));
   
  for(int i=0;i<N;i++){
     
     for(int j=0;j<M;j++){
 cin >>A.at(i).at(j);
  }
   }
                int f=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){f++;}
   }    
                
  cout <<f <<endl;
}

Compiler output:
a.cc:1:7: error: stray '#' in program
    1 | 18 -13#include<bits/stdc++.h>
      |       ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 18 -13#include<bits/stdc++.h>
      | ^~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >>N >>M>>C;
      |   ^~~
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> B(M);
      |   ^~~~~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> B(M);
      |          ^~~
a.cc:9:8: error: 'B' was not declared in this scope
    9 |  cin >>B.at(i);
      |        ^
a.cc:12:15: error: expected primary-expression before 'int'
   12 | vector<vector<int>> A(N, vector<int> (M+1));
      |               ^~~
a.cc:17:8: error: 'A' was not declared in this scope
   17 |  cin >>A.at(i).at(j);
      |        ^
a.cc:24:7: error: 'A' was not declared in this scope
   24 |  sum+=A.at(i).at(j)*B.at(j);
      |       ^
a.cc:24:21: error: 'B' was not declared in this scope
   24 |  sum+=A.at(i).at(j)*B.at(j);
      |                     ^
a.cc:29:3: error: 'cout' was not declared in this scope
   29 |   cout <<f <<endl;
      |   ^~~~
a.cc:29:14: error: 'endl' was not declared in this scope
   29 |   cout <<f <<endl;
      |              ^~~~
Language: C

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

int main(void){
  int N,M, C;
  int *B, *A;
  scanf("%d %d %d", &N, &M, &C);
  B = malloc(sizeof(int) * M);
  for(int i = 0; i < M; i++){
    scanf("%d", &B[i]);
  }
  A = malloc(sizeof(int) * M);
  int ans = 0;
  int cnt = 0;
  for(int i = 0; i < N; i++){
    for(int j = 0; j < M; j++){
      scanf("%d", &A[j]);
      ans += A[j] * B[j];
  	}
    ans += C;
    if(ans > 0){
      cnt++;
    }
    else{
      void(0);
    }
  }
  printf("%d",cnt);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:12: error: expected identifier or '(' before numeric constant
   25 |       void(0);
      |            ^
Language: C

#include<stdio.h>

int main(void){
  int N,M, C;
  int *B, *A;
  scanf("%d %d %d", &N, &M, &C);
  B = malloc(sizeof(int) * M);
  for(int i = 0; i < M; i++){
    scanf("%d", &B[i]);
  }
  A = malloc(sizeof(int) * M);
  int ans = 0;
  int cnt = 0;
  for(int i = 0; i < N; i++){
    for(int j = 0; j < M; j++){
      scanf("%d", &A[j]);
      ans += A[j] * B[j];
  	}
    ans += C;
    if(ans > 0){
      cnt++;
    }
    else{
      (void(0));
    }
  }
  printf("%d",cnt);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
    7 |   B = malloc(sizeof(int) * M);
      |       ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:7:7: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
    7 |   B = malloc(sizeof(int) * M);
      |       ^~~~~~
main.c:7:7: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:24:13: error: expected ')' before numeric constant
   24 |       (void(0));
      |             ^
      |             )
Language: C

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

int main(){
    int N, M, C, ans=0;
    cin >> N >> M >> C;
    int A[N][M];
    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[i][j];
    }

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

    cout << ans << endl;
    return 0;
}


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

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

int main() {
 int A,B,a;
 cin>>A>>B>>a;
  
  
   int count=0;  
  
  for(int i=0;i<A;i++){
    vector<int>ai(B);
    int counti=a;
    for(int j=0;j<B;j++){
      cin>>ai[j];
      counti+=ai[j];
    }
  
    
     if(counti>0){
       count++;
     }
     
  
  }

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

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[][] ar = new int[N][M];
            int[] arB= new int[N];
            
            for(int i=0; i<M; i++){
                arB[i]= sc.nextInt();
            }

            for(int i=0; i<N; i++){
                for(int j=0; j<M; j++){
                    ar[i][j] = sc.nextInt();
                }
            }

            int rslt=0;
            int ans =0;
            for(int i=0; i<N; i++){
                for(int j=0; j<M; j++){
                    rslt = rslt + arB[j]*ar[i][j];
                }
                if((rslt + C) >0){
                    ans++;
                }
                rslt=0;
            }

            // 出力
    		System.out.println(ans);
    	}
    }


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:5: error: expected unqualified-id before 'public'
    2 |     public class Main {
      |     ^~~~~~
Language: C

#include<bits/stdc++.h>

#define             ll                      long long
#define             si(a)                   scanf("%d",&a)
#define             sii(a,b)                scanf("%d%d",&a,&b)
#define             siii(a,b,c)             scanf("%d%d%d",&a,&b,&c)
#define             s(a)                    scanf("%s",a)
#define             ss(a,b)                 scanf("%s%s",a,b)
#define             pii                     pair<int,int>
#define             pb(a)                   push_back(a)
#define             fr(i,n)                 for(int i=0;i<n;i++)
#define             pri(a)                  printf("%d ",a)
#define             bl                      printf("\n")
#define             PI                      2*acos(0.0)
#define             inf                     1000000
#define             sz                      120
#define             MOD                     1000000007
#define             base                    2147483647
#define             vsort(a)                (a.begin(),a.end())
#define             EPS                     10E-10
#define             gcd(a, b)               __gcd(a, b)
#define             lcm(a, b)               ((a)*((b)/gcd(a,b))
#define             finput                  freopen("input.txt","r",stdin)
#define             foutput                 freopen("output.txt","w",stdout)
#define             debug(a,b)              printf("%s %d ",a,b)


//const int fx[]={1,-1,0,0};
//const int fy[]={0,0,1,-1};
//const int fx[]={0,0,1,-1,-1,1,-1,1};   // Kings Move
//const int fy[]={-1,1,0,0,1,1,-1,-1};  // Kings Move
//const int fx[]={-2, -2, -1, -1,  1,  1,  2,  2};  // Knights Move
//const int fy[]={-1,  1, -2,  2, -2,  2, -1,  1}; // Knights Move



int grid[sz][sz];

int main()
{

    int n,m,c;

    scanf("%d%d%d",&n,&m,&c);

    fr(i,m){
        si(grid[0][i]);
    }

    fr(i,n){
        fr(j,m){
            si(grid[i+1][j]);
        }
    }

    int sum = 0;
    int cnt = 0;

    fr(i,n+1){
        fr(j,m){
            sum = sum+(grid[0][j]*grid[i+1][j]);
        }
        if((sum+c)>0) cnt++;
        sum = 0;
    }

    printf("%d\n",cnt);


    return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected identifier before numeric constant
    5 |     int[20] b;
      |         ^~
a.cc:5:9: error: expected ']' before numeric constant
    5 |     int[20] b;
      |         ^~
      |         ]
a.cc:5:8: error: structured binding declaration cannot have type 'int'
    5 |     int[20] b;
      |        ^
a.cc:5:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:8: error: empty structured binding declaration
a.cc:5:13: error: expected initializer before 'b'
    5 |     int[20] b;
      |             ^
a.cc:6:9: error: expected identifier before numeric constant
    6 |     int[20][20] a;
      |         ^~
a.cc:6:9: error: expected ']' before numeric constant
    6 |     int[20][20] a;
      |         ^~
      |         ]
a.cc:6:8: error: structured binding declaration cannot have type 'int'
    6 |     int[20][20] a;
      |        ^
a.cc:6:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:6:8: error: empty structured binding declaration
a.cc:6:12: error: expected initializer before '[' token
    6 |     int[20][20] a;
      |            ^
a.cc:9:16: error: 'b' was not declared in this scope
    9 |         cin >> b[i];
      |                ^
a.cc:12:20: error: 'a' was not declared in this scope
   12 |             cin >> a[i][j];
      |                    ^
a.cc:17:23: error: 'a' was not declared in this scope
   17 |             result += a[i][j] * b[j];
      |                       ^
a.cc:17:33: error: 'b' was not declared in this scope
   17 |             result += a[i][j] * b[j];
      |                                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, c;
  cin >> n >> m >> c;
  int a[n][m];
  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[i][j];
    }
  }

  int co = 0;
  int x = 0;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:27:12: error: expected '}' at end of input
   27 |   return 0;
      |            ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long unsigned int ll;

// definition {{{ 1

// scaning {{{ 2
#define Scd(x) scanf("%d", &x)
#define Scd2(x,y) scanf("%d%d", &x, &y)
#define Scd3(x,y,z) scanf("%d%d%d", &x, &y, &z)

#define Scll(x) scanf("%llu", &x)
#define Scll2(x,y) scanf("%llu%llu", &x, &y)
#define Scll3(x,y,z) scanf("%llu%llu%llu", &x, &y, &z)

#define Scc(c) scanf("%c", &c);
#define Scs(s) scanf("%s", s);
#define Scstr(s) scanf("%s", &s);
// }}} 2

// constants {{{ 2
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
// }}} 2

// systems {{{ 2
#define Rep(x,y) for(int x = 0; x < y; x++)
#define Repe(x,y,z) for(int x = z; x < y; x++)
// }}} 2

// output {{{ 2
#define YesNo(a) (a)?printf("Yes\n"):printf("No\n");
// }}} 2

// }}} 1

int main() {

    int N,M,C;
    Scd3(N,M,C);
  
    int b[1000];
    int a;
  int ans = 0;
    Rep(i,M)
    Scd(b[i]);
    Rep(ii,N){
      int t = c;
      Rep(i,M){
        Scd(a);
        t += a*b[i];
      }
      ans+=(t>0);
    }
      
  
    

    printf("%d\n", ans );


    return 0;
}



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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:34: error: expected ';' before ':' token
   12 |                 ans+=a[i][j]*b[i]:
      |                                  ^
      |                                  ;
a.cc:14:30: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |     }if(count==0)count<<count<<endl;
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

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

Compiler output:
a.cc:2:3: error: 'cin' does not name a type
    2 |   cin >>  N >> M >> C;
      |   ^~~
a.cc:3:9: error: size of array 'B' is not an integral constant-expression
    3 |   int B[M];
      |         ^
a.cc:4:3: error: expected unqualified-id before 'for'
    4 |   for(int i=0;i<M;i++){
      |   ^~~
a.cc:4:15: error: 'i' does not name a type
    4 |   for(int i=0;i<M;i++){
      |               ^
a.cc:4:19: error: 'i' does not name a type
    4 |   for(int i=0;i<M;i++){
      |                   ^
a.cc:7:12: error: size of array 'A' is not an integral constant-expression
    7 |   int A[N][M];
      |            ^
a.cc:7:9: error: size of array 'A' is not an integral constant-expression
    7 |   int A[N][M];
      |         ^
a.cc:10:3: error: expected unqualified-id before 'for'
   10 |   for(int i=0;i<N;i++){
      |   ^~~
a.cc:10:15: error: 'i' does not name a type
   10 |   for(int i=0;i<N;i++){
      |               ^
a.cc:10:19: error: 'i' does not name a type
   10 |   for(int i=0;i<N;i++){
      |                   ^
a.cc:20:3: error: 'cout' does not name a type
   20 |   cout << ans << endl;
      |   ^~~~
a.cc:21:3: error: expected unqualified-id before 'return'
   21 |   return 0;
      |   ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:5: error: 'sum' undeclared (first use in this function)
   16 |     sum=0;
      |     ^~~
main.c:16:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
#define _ ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define int long long
#define pb push_back
#define sz(i) (int)(i.size())
#define F first
#define S second
#define L long double
#define P pair<int, int>
const int inf = 0x3f3f3f3f3f3f3f3LL;
const int mod = (int)1e9 + 7;
using namespace std;
#if ONLINE_JUDGE
#define tr(...)
#define endl '\n'
#else
#include "../../tr.h"
#endif
template<class T> void smin(T& a, T val) {if (a > val) a = val;}template<class T> void smax(T& a, T val) {if (a < val) a = val;}
const int N = 500;

int n, a[N][N], m, c, b[N];
int32_t 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];
      }
   }


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

   cout<<ans;

   #warning make sure N size is correct!
   return 0;
}

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

#include <iostream>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
#include <cstdio>
#include <bits/stdc++.h>
#include <set>
#include <map>
#include <stdio.h>
#include <stack>
#include <queue>
#include <deque>
#include <numeric>
#include <bits/stdc++.h>
#include <utility>
#include <iomanip>

#define ALL(obj) (obj).begin(), (obj).end()
#define FOR(i,a,b) for(int i = (a); i < (b); i++)
#define RFOR(i,a,b) for(int i = (a); (b) <= i; i--)
#define REP(i,n) for(int i = 0; i < (n); i++)
#define RREP(i,n) for(int i = n; n <= i; i--)
#define ABS(a) ((a < 0) ? ((-1)*(a)) : (a))
#define elif else if
#define MOD 1000000007
#define INF (1<<30)

using namespace std;

#define ld long double
#define ll long long

map <int ,int> mpa,mpb;
typedef pair<ll, ll> P;
priority_queue<P, vector<P>, greater<P>> pque;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  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]=0;
  int ans=0;
  int cnt=0;
  for(int i=0;i<N;i++){
    for(int j=0;j<M;j++){
      cin >> A[i][j];
      cnt+=A[i][j]*B[j];
    }
    if(cnt+C>0){
      ans++
    }
    cnt=0;
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:47:15: error: array must be initialized with a brace-enclosed initializer
   47 |   int A[N][M]=0;
      |               ^
a.cc:56:12: error: expected ';' before '}' token
   56 |       ans++
      |            ^
      |            ;
   57 |     }
      |     ~
Language: C++

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


int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int n, m, c;
    cin >> n >> m >> c;
    vi 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 aij;
            cin >> aij;
            res += aij*b[j];
        }
        cnt += (res > 0);
    }
    cout << cnt << "\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'vi' was not declared in this scope
   11 |     vi b(m);
      |     ^~
a.cc:13:16: error: 'b' was not declared in this scope
   13 |         cin >> b[i];
      |                ^
a.cc:20:24: error: 'b' was not declared in this scope
   20 |             res += aij*b[j];
      |                        ^
Language: C++

#include <bits/stdc++.h>
#define _ ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define int long long
#define pb push_back
#define sz(i) (int)(i.size())
#define F first
#define S second
#define L long double
#define P pair<int, int>
const int inf = 0x3f3f3f3f3f3f3f3LL;
const int mod = (int)1e9 + 7;
using namespace std;
#if ONLINE_JUDGE
#define tr(...)
#define endl '\n'
#else
#include "../../tr.h"
#endif
template<class T> void smin(T& a, T val) {if (a > val) a = val;}template<class T> void smax(T& a, T val) {if (a < val) a = val;}
const int N = 500;

int n, a[N][N], m, c, b[N];
int32_t 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];
      }
   }


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

   cout<<ans;

   #warning make sure N size is correct!
   return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int n, m, c, ans, b[25], a, tm;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: reference to 'tm' is ambiguous
    9 |         tm = c;
      |         ^~
In file included from /usr/include/time.h:39,
                 from /usr/include/pthread.h:23,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr.h:157,
                 from /usr/include/c++/14/ext/atomicity.h:35,
                 from /usr/include/c++/14/bits/ios_base.h:39,
                 from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: candidates are: 'struct tm'
    7 | struct tm
      |        ^~
a.cc:3:29: note:                 'int tm'
    3 | int n, m, c, ans, b[25], a, tm;
      |                             ^~
a.cc:12:13: error: reference to 'tm' is ambiguous
   12 |             tm += b[j]*a;
      |             ^~
/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: candidates are: 'struct tm'
    7 | struct tm
      |        ^~
a.cc:3:29: note:                 'int tm'
    3 | int n, m, c, ans, b[25], a, tm;
      |                             ^~
a.cc:14:12: error: reference to 'tm' is ambiguous
   14 |         if(tm > 0) ans++;
      |            ^~
/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: candidates are: 'struct tm'
    7 | struct tm
      |        ^~
a.cc:3:29: note:                 'int tm'
    3 | int n, m, c, ans, b[25], a, tm;
      |                             ^~
Language: C++

#include<iostream>
#include<math.h>
#include<algorithm>
#include<utility>
#include<queue>
#include<string.h>
#include<string>
#include<set>
using namespace std;
typedef long long LL;
typedef pair<int, int> P;

int main(){
    int N,M,C;
    cin>>N>>M>>C;
    int a[21][21];
    int b[21];
    for(int i=0;i<M;i++){
        cin>>b[i];
    }
    int ans=0;
    for(int i=0;i<N;i++){
        int c=0;
        for(int j=0;j<M;j++){
            cin>>a[i][j];
            c+=a[i][j]*b[j]
        }
        if(c+C>0){
            ans++;
        }
    }
    cout<<ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:28: error: expected ';' before '}' token
   26 |             c+=a[i][j]*b[j]
      |                            ^
      |                            ;
   27 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
#define int long long
typedef long long ll;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
using namespace std;
const pair<int,int> fd[] = {make_pair(1,0),make_pair(-1,0),make_pair(0,1),make_pair(0,-1)}; 


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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: expected ';' before 'a'
   20 |       int x;cin>>x
      |                   ^
      |                   ;
   21 |       a += x * b[i];
      |       ~
Language: C++

# coding: utf-8
# Your code here!

"""
a, b, k = map(int, input().split())
a = list(map(int, input().split()))
for i in reversed(range(min(a, b)+ 1)):
"""

n, m, c = map(int, input().split())
b = list(map(int, input().split()))

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

print(ans)

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:3: error: invalid preprocessing directive #Your
    2 | # Your code here!
      |   ^~~~
a.cc:4:3: warning: missing terminating " character
    4 | """
      |   ^
a.cc:4:3: error: missing terminating " character
a.cc:8:3: warning: missing terminating " character
    8 | """
      |   ^
a.cc:8:3: error: missing terminating " character
a.cc:4:1: error: expected unqualified-id before string constant
    4 | """
      | ^~
Language: C

from collections import defaultdict
N, M = map(int,input().rstrip().split())
d = defaultdict(lambda: 0)
for _ in range(N):
    A, B = map(int,input().rstrip().split())
    d[A] += B
ans=0
for k in sorted(d.keys()):
    if d[k]<=M:
        ans += k*d[k]
    else:
        ans += k*M
    M -= d[k]
    if M<=0:break
print(ans)

Compiler output:
main.c:1:1: error: unknown type name 'from'
    1 | from collections import defaultdict
      | ^~~~
main.c:1:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    1 | from collections import defaultdict
      |                  ^~~~~~
main.c:1:18: error: unknown type name 'import'
Language: C++

#include<iostream>
#include<vector>
#include <cmath>
#include <map>
#include <set>
#include <algorithm>
#include <string>
#define rep(i,n) for (int i= 0;i<(n);++i)
using namespace std;
typedef long long ll;
int main()
{
    int n, m;
  cin >> n >> m;
  vector<int> a(n), b(n);
  rep(i, n) cin >> a[i] >> b[i];
 
  vector<P> ps(n);
  rep(i, n) ps[i] = make_pair(a[i], b[i]);
  sort(ps.begin(), ps.end());
  ll ans = 0;
  rep(i, n) {
    if (m == 0) break;
    ans += (ll)ps[i].first * min(m, ps[i].second);
    m -= min(m, ps[i].second);
  }
  cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: 'P' was not declared in this scope
   18 |   vector<P> ps(n);
      |          ^
a.cc:18:11: error: template argument 1 is invalid
   18 |   vector<P> ps(n);
      |           ^
a.cc:18:11: error: template argument 2 is invalid
a.cc:19:15: error: invalid types 'int[int]' for array subscript
   19 |   rep(i, n) ps[i] = make_pair(a[i], b[i]);
      |               ^
a.cc:20:11: error: request for member 'begin' in 'ps', which is of non-class type 'int'
   20 |   sort(ps.begin(), ps.end());
      |           ^~~~~
a.cc:20:23: error: request for member 'end' in 'ps', which is of non-class type 'int'
   20 |   sort(ps.begin(), ps.end());
      |                       ^~~
a.cc:24:18: error: invalid types 'int[int]' for array subscript
   24 |     ans += (ll)ps[i].first * min(m, ps[i].second);
      |                  ^
a.cc:24:39: error: invalid types 'int[int]' for array subscript
   24 |     ans += (ll)ps[i].first * min(m, ps[i].second);
      |                                       ^
a.cc:25:19: error: invalid types 'int[int]' for array subscript
   25 |     m -= min(m, ps[i].second);
      |                   ^