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

    import java.util.*;
    public class Main {
    	public static void main(String[] args){
    		Scanner sc = new Scanner(System.in);
    		// 整数の入力
    		int H = sc.nextInt();
    		int W = sc.nextInt();
    		int h = sc.nextInt();
            int w = sc.nextInt();
            
            int result = H*W - W*h - H*w;
            // 出力
    		System.out.println(result);
    	}
    }

Compiler output:
a.cc:1:5: error: 'import' does not name a type
    1 |     import java.util.*;
      |     ^~~~~~
a.cc:1:5: 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

/// @file

#include <iostream>

namespace {

bool run(std::istream& is, std::ostream& os);
}  // unnamed namespace

/// @brief エントリポイント
#ifdef _TEST
static int run()
#else
int main()
#endif
{
  try {
    if (run(std::cin, std::cout) == false) {
      std::cerr << "main funciton error.\n";
      return EXIT_FAILURE;
    }
  } catch (const std::exception& e) {
    std::cerr << "catch exception\n";
    std::cerr << e.what() << "\n";
    return EXIT_FAILURE;
  }

  return EXIT_SUCCESS;
}

namespace {

/// @brief 実行処理
bool run(std::istream& is, std::ostream& os)
{
  int H;
  int W;
  int h;
  int w;
  is >> H >> W;
  is >> h >> w;

  const int restH = H - h;
  const int restW = W - w;
  const int restCell = restH * restW;

  os << restCell << "\n";

  return true;
}
}  // unnamed namespace


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int H;
  int W;
  int h;
  int w;
  cin >> H >> W;
  cin >> h >> w;
 
  int S;
  S=H*W
  int s;
  s=h*w

 cout << S-s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected ';' before 'int'
   13 |   S=H*W
      |        ^
      |        ;
   14 |   int s;
      |   ~~~   
a.cc:15:3: error: 's' was not declared in this scope
   15 |   s=h*w
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int H;
  int W;
  int h;
  int w;
  cin >> H >> W;
  cin >> h >> w;
 
  int S
  S=H*W
  int s
  s=h*w

 cout << S-s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected initializer before 'S'
   13 |   S=H*W
      |   ^
Language: Java


import java.io.*;
 
import java.text.*;
import java.util.*;
public class Mainn {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int H = sc.nextInt();
		int W = sc.nextInt();
		int h = sc.nextInt();
		int w = sc.nextInt();
		System.out.println((H - h) * (W - w));
	}

}


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

# -*- coding: utf-8 -*-
# 整数の入力
H, W = [int(x) for x in input().split()]
h, w = [int(x) for x in input().split()]
ret = (H - h) * (W - w)
print(ret)

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:3: error: invalid preprocessing directive #\U00006574\U00006570\U0000306e\U00005165\U0000529b
    2 | # 整数の入力
      |   ^~~~~~~~~~
a.cc:3:1: error: 'H' does not name a type
    3 | H, W = [int(x) for x in input().split()]
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int H;
  int W;
  int h;
  int w;
  cin >> H >> W;
  cin >> h >> w;
 
  int S
  S=H*W
  int s
  s=h*w

  cout << S-s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected initializer before 'S'
   13 |   S=H*W
      |   ^
Language: C++

import numpy as np


H,W = map(int,input().split())
h,w = map(int,input().split())


print(H*W-h*W-w*H+h*w)

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: Java



import java.util.Scanner;

public class A {

    public static void main(String[] args) {
        final Scanner sc = new Scanner(System.in);
        final int H = sc.nextInt();
        final int W = sc.nextInt();

        final int h = sc.nextInt();
        final int w = sc.nextInt();

        System.out.println((H - h)*(W - w));
        System.out.flush();
        sc.close();
    }
}


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


using namespace std;

int main(){
    int H, W, h, w;
    cin >> H >> W >> h >> w;
    cout << (H-h) * (W-w) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> H >> W >> h >> w;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << (H-h) * (W-w) << endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:30: error: 'endl' was not declared in this scope
    7 |     cout << (H-h) * (W-w) << endl;
      |                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <numeric>
#include <cmath>

using namespace std;

typedef long long int ll;

#define all(x) x.begin(),x.end()

const ll mod = 1e9+7;
const ll INF = 1e9;
const ll MAXN = 1e9;

int main()
{
	int H,W,hw;
	cin>>H>>W>>h>>w;
	cout << (H-h)*(W-w) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:20: error: 'h' was not declared in this scope
   25 |         cin>>H>>W>>h>>w;
      |                    ^
a.cc:25:23: error: 'w' was not declared in this scope
   25 |         cin>>H>>W>>h>>w;
      |                       ^
Language: C++

int main() {
	int H,W,h,w;
	cin >> H >> W>> h >> w;
	cout << (H-h) * (W-w) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> H >> W>> h >> w;
      |         ^~~
a.cc:4:9: error: 'cout' was not declared in this scope
    4 |         cout << (H-h) * (W-w) << endl;
      |         ^~~~
a.cc:4:34: error: 'endl' was not declared in this scope
    4 |         cout << (H-h) * (W-w) << endl;
      |                                  ^~~~
Language: Java

package atcoder;

import java.util.Scanner;

public class ProblemA {

    public static void main(String[] args) {
        final Scanner sc = new Scanner(System.in);
        final int H = sc.nextInt();
        final int W = sc.nextInt();

        final int h = sc.nextInt();
        final int w = sc.nextInt();

        System.out.println((H - h)*(W - w));
        System.out.flush();
        sc.close();
    }
}


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

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


int main(){
	ll a,b,c,d;
	cin>>a>>b>>c>>d;
	cout>>(a-c)*(b-d)>>endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:17: error: declaration does not declare anything [-fpermissive]
    3 | #define ll long long;
      |                 ^~~~
a.cc:7:9: note: in expansion of macro 'll'
    7 |         ll a,b,c,d;
      |         ^~
a.cc:7:12: error: 'a' was not declared in this scope
    7 |         ll a,b,c,d;
      |            ^
a.cc:7:14: error: 'b' was not declared in this scope
    7 |         ll a,b,c,d;
      |              ^
a.cc:7:16: error: 'c' was not declared in this scope
    7 |         ll a,b,c,d;
      |                ^
a.cc:7:18: error: 'd' was not declared in this scope
    7 |         ll a,b,c,d;
      |                  ^
Language: C++

#include<bits/stdc++.h>
#define ll long long int 
#define pb push_back
#define mp make_pair
#define ff first
#define se second
#define MAX 1000001
#define MAXN 100005
#define mod 1000000007 
using namespace std;
 
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll a,b,c,d;
    cin>>a>>b>>c>>d;
    ans=(a-c)*(b-d);
    cout<<ans;
}

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

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
typedef long long ll;

int main(){
    int H,W,h,w;
    cin >> H >> W >> h >> w;
    cout << (H-h) * (W-w) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> H >> W >> h >> w;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << (H-h) * (W-w) << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << (H-h) * (W-w) << endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<stling.h>
#include<stdbool.h>

#define MOD 998244353

#define MIN(a,b) ((a)<(b)?(a):(b));
#define MAX(a,b) ((a)>(b)?(a):(b));

typedef long long int64;

int main(void){
    int H,W;
    scanf("%d %d",&H,&W);
    int h,w;
    scanf("%d %d",&H,&W);

    printf("%d",(H-h)*(W-w)));
    
    
    return 0;
}

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

#include <bits/stdc++.h>
#define ALL(v) v.begin(), v.end()
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;

int main() {
  iny h,w,hi,wi; cin>>h>w>>hi>>wi;
  cout<<h*w-hi*wi<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'iny' was not declared in this scope; did you mean 'int'?
    8 |   iny h,w,hi,wi; cin>>h>w>>hi>>wi;
      |   ^~~
      |   int
a.cc:8:23: error: 'h' was not declared in this scope
    8 |   iny h,w,hi,wi; cin>>h>w>>hi>>wi;
      |                       ^
a.cc:8:25: error: 'w' was not declared in this scope
    8 |   iny h,w,hi,wi; cin>>h>w>>hi>>wi;
      |                         ^
a.cc:8:28: error: 'hi' was not declared in this scope
    8 |   iny h,w,hi,wi; cin>>h>w>>hi>>wi;
      |                            ^~
a.cc:8:32: error: 'wi' was not declared in this scope
    8 |   iny h,w,hi,wi; cin>>h>w>>hi>>wi;
      |                                ^~
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)):
"""

H, W = map(int, input().split())
h, w = map(int, input().split())

print((H-h)*(W-w))

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++

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

int main(){
  cin >>a>>b>>c>>d;
  cout<<(a-c)*(b-d)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'a' was not declared in this scope
    5 |   cin >>a>>b>>c>>d;
      |         ^
a.cc:5:12: error: 'b' was not declared in this scope
    5 |   cin >>a>>b>>c>>d;
      |            ^
a.cc:5:15: error: 'c' was not declared in this scope
    5 |   cin >>a>>b>>c>>d;
      |               ^
a.cc:5:18: error: 'd' was not declared in this scope
    5 |   cin >>a>>b>>c>>d;
      |                  ^
Language: C

#include<stdio.h>
int main()
{
    int a,b,c,d;

    scanf("%d %d %d",&a,&b,&c);

    d = b/a;

    if(d>c || d==c) printf("%d\n",c);

    else if(c>d && d>0) printf("%d\n",d);

    else if(d==0 && c==0r) printf("%d\n",d);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:24: error: fixed-point types not supported for this target
   14 |     else if(d==0 && c==0r) printf("%d\n",d);
      |                        ^~
Language: C

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FOR(i, a, b) for(ll i = (a); i < (b); ++i)
#define REP(i, n) for(ll i = 0; i < (n); ++i)

int main() {
    ll N, M, C;
    cin >> N >> M >> C;

    ll B[M];
    REP(i, M) cin >> B[i];

    ll ans = 0;
    REP(i, N) {
        ll sum = C;
        REP(j, M) {
            ll tmp;
            cin >> tmp;
            sum += tmp*B[j];
        }

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

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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i += 2)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i += 2)
int main() {
  int N, M, C;
  cin >> N >> M >> C;
  vector<int> vec_B; 
  rep(i, M) {
    cin >> vec_B.at(i);
  }
  vector<vector<int>> vec(N, vector<int>(M));
  rep(i, N) {
    rep(j, M) {
      cin >> vec.at(i).at(j);
    }
  }
  int c = 0;
  int AA = 0;
  rep(i, N) {
    rep(j, M) {
      AA += vec.at(i).at(j) * vec_C.at(j);
    }
    if(AA + C > 0) {
      c++;
    }
    AA = 0;
  }
  cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:31: error: 'vec_C' was not declared in this scope; did you mean 'vec_B'?
   23 |       AA += vec.at(i).at(j) * vec_C.at(j);
      |                               ^~~~~
      |                               vec_B
Language: C++

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

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


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


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

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

int main(void) {
	int N, M, C;
	scnaf("%d %d %d", &N, &M, &C);
	int B[20];
	int A[20];
	for (int i = 0; i < M; i++) {
		scanf("%d", &B[i]);
	}
	int ans = 0;
	for (int i = 0; i < N; i++) {
		int val = 0;
		for (int j = 0; j < M; j++) {
			scanf("%d", &A[j]);
			val += A[j] * B[i];
		}
		val += C;
		if (val > 0) ans++;
	}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    7 |         scnaf("%d %d %d", &N, &M, &C);
      |         ^~~~~
      |         scanf
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: cannot convert 'int**' to 'int*' in assignment
    8 |         b = new int*[m];
      |             ^~~~~~~~~~~
      |             |
      |             int**
Language: C

#include <stdio.h>

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   rep(i, m) cin >> b[i];
      |       ^
a.cc:9:3: error: 'rep' was not declared in this scope
    9 |   rep(i, m) cin >> b[i];
      |   ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,M,C;cin>>N>>M>>C;
  int b[];
  int ans=0;
  int a;
  int sum=0;
  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;
      sum+=a*b[i];
    }
    if(sum+C>0)ans+=1;
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: storage size of 'b' isn't known
    5 |   int b[];
      |       ^
Language: C++

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

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

#include<algorithm>//sort,二分探索,など
#include<bitset>//固定長bit集合
#include<cmath>//pow,logなど
#include<complex>//複素数
#include<deque>//両端アクセスのキュー
#include<functional>//sortのgreater
#include<iomanip>//setprecision(浮動小数点の出力の誤差)
#include<iostream>//入出力
#include<iterator>//集合演算(積集合,和集合,差集合など)
#include<map>//map(辞書)
#include<numeric>//iota(整数列の生成),gcdとlcm(c++17)
#include<queue>//キュー
#include<set>//集合
#include<stack>//スタック
#include<string>//文字列
#include<unordered_map>//イテレータあるけど順序保持しないmap
#include<unordered_set>//イテレータあるけど順序保持しないset
#include<utility>//pair
#include<vector>//可変長配列

// vectorの重複削除
// std::sort(test.begin(), test.end());
// test.erase(std::unique(test.begin(), test.end()), test.end());

using namespace std;
using ll = long long;
using P = pair<int, int>; // vector<P> ba(n); みたいな感じですぐ使える ba[i] = P(a, b); make_pairをしなくてもいい
// typedef vector<int> v;
template <class T>ostream &operator<<(ostream &o,const vector<T>&v){o<<"{";for(int i=0;i<(int)v.size();i++)o<<(i>0?", ":"")<<v[i];o<<"}";return o;}
#define debug(v) {cerr<<"\033[1;36m[debug]\033[m "<<#v<<" : "<<v<<endl;}
#define rep(i, c) for(int i = 0; i < int(c); i++)
#define ALL(x) (x).begin(), (x).end() //sort(ALL(obj))みたいな
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値
#define pb push_back //
// const int MOD = 1000000007;
// string alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
// printf("%.20f\n", ans); あれ
// const double PI = 3.141592653589793238462643383;

int main() {
  //std::vector<int> v(5);
  int n,m,c; cin>>n>>m>>c;
  std::vector<int> b(m);
  //std::vector<int> a(m);
  int cnt = 0;
  rep(i,m) cin>>b[i];
  rep(i,n) {
    ans = 0;
    rep(j,m) {
      int num; cin>>num;
      ans += (b[i]*num);
    }
    if (ans + c > 0) cnt++;
  }
  cout << cnt << endl;
}


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

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

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

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

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

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

Compiler output:
a.cc:1:10: fatal error: bits/std++c.h: No such file or directory
    1 | #include <bits/std++c.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
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,<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 count=0;
    for(int i=0;i<N;i++){
        int 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:9:29: error: expected primary-expression before '<' token
    9 |     vector<vector<int>> A(N,<int>(M));
      |                             ^
a.cc:9:30: error: expected primary-expression before 'int'
    9 |     vector<vector<int>> A(N,<int>(M));
      |                              ^~~
Language: C++

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

  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before '}' token
   13 |     cin>>A.at(i)
      |                 ^
      |                 ;
   14 |      }
      |      ~           
a.cc:25:37: error: expected ';' before '}' token
   25 |       sum+=(A.at(j))*(B.at(i).at(j))
      |                                     ^
      |                                     ;
   26 |     }
      |     ~                                
a.cc:27:8: error: 'sum' was not declared in this scope
   27 |     if(sum+C>0){
      |        ^~~
Language: C++

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

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


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

#include<iostream>
#include<vector>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> N >> M >> C;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> A,B;
      |   ^~~~~~
a.cc:7:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> A,B;
      |          ^~~
a.cc:9:12: error: 'B' was not declared in this scope
    9 |     cin >> B.at(i);
      |            ^
a.cc:15:14: error: 'A' was not declared in this scope
   15 |       cin >> A.at(i);
      |              ^
a.cc:16:22: error: 'B' was not declared in this scope
   16 |       sum += A.at(i)*B.at(i);
      |                      ^
a.cc:22:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |   cout << res << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:22:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   22 |   cout << res << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

package atcoder.ABC_B;
import java.util.*;

public class B121 {
	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 count=0;
		int[] B = new int[M];
		int[] A = new int[M];
		int sum=0;
		
		for(int i=0;i<M;i++) {
			B[i]=sc.nextInt();
		}
		
		for(int i=0;i<N;i++) {
			sum=C;
			for(int j=0;j<M;j++) {
				int s=sc.nextInt();
				sum+=(s*B[j]);
			}
			if(sum>0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();
	}
}


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

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

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

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

#include <iostream>
using namespace std;

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


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

#include<bits/stdc.h>

using namespace std;

int main()
{
  
}#include<bits/stdc++.h>

using namespace std;

int n, m, c;
int main()
{
  int res = 0;
  cin >> n >> m >> c;
  for(int i = 1; i <= n; i ++){
   int sum = c;
   for(int j = 1; j <= m; j ++){
   		int x;
    	cin >> x;
     	sum += x;
   }
    res += (sum > 0);
  }
  cout << res << "\n";
}

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++

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 a=0; int b=0;
  for(int i=0;i<N;i++){
    for(int j=0;j<M;j++){
      b=0;
      b=b+A.at(i).at(j)*B.at(j);
    }
    if(b+C>0){
      a++;
    }
  }
  cout<<a<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>N>>M>>C;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int>B(M);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int>B(M);
      |          ^~~
a.cc:7:17: error: expected primary-expression before 'int'
    7 |   vector<vector<int>>A(N,vector<int>(M));
      |                 ^~~
a.cc:9:10: error: 'B' was not declared in this scope
    9 |     cin>>B.at(i);
      |          ^
a.cc:13:12: error: 'A' was not declared in this scope
   13 |       cin>>A.at(i).at(j);
      |            ^
a.cc:20:11: error: 'A' was not declared in this scope
   20 |       b=b+A.at(i).at(j)*B.at(j);
      |           ^
a.cc:20:25: error: 'B' was not declared in this scope
   20 |       b=b+A.at(i).at(j)*B.at(j);
      |                         ^
a.cc:26:3: error: 'cout' was not declared in this scope
   26 |   cout<<a<< endl;
      |   ^~~~
a.cc:26:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:13: error: 'endl' was not declared in this scope
   26 |   cout<<a<< endl;
      |             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include<iostream>
using std::cout;
using std::cin;
using std::endl;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'vector' was not declared in this scope
   11 |   vector<int> b(m);
      |   ^~~~~~
a.cc:11:10: error: expected primary-expression before 'int'
   11 |   vector<int> b(m);
      |          ^~~
a.cc:13:12: error: 'b' was not declared in this scope
   13 |     cin >> b.at(i);
      |            ^
a.cc:23:20: error: 'b' was not declared in this scope
   23 |       sum += tmp * b.at(i);
      |                    ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: invalid use of 'class std::vector<int>'
   11 |   cin>>A(i.vector<int>.j);
      |            ^~~~~~~~~~~
a.cc:17:8: error: 'A' was not declared in this scope
   17 |   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;
    for(int k=1;k<=M;k++){cin>>B.at(k);}
  vector<vector<int>> A(i,vector<int>(j))
  for(int i=1;i<=N;i++){for(int j=1;j<=M;j++){
  cin>>A(i.vector<int>.j);
  
  }}
  int sum=0;
  int ans=0;
  for(int i=1;i<=N;i++){for(int j=1;j<=M;j++){
  sum+=A[i][j]*B[j];
  if(sum-=C>0){ans++;}
  
  }}
  cout<<ans<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'i' was not declared in this scope
    8 |   vector<vector<int>> A(i,vector<int>(j))
      |                         ^
a.cc:8:39: error: 'j' was not declared in this scope
    8 |   vector<vector<int>> A(i,vector<int>(j))
      |                                       ^
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for(int i=1;i<=N;i++){for(int j=1;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
    for(int k=1;k<=M;k++){cin>>B.at(k)}
  vector<vector<int>> A(i,vector<int>(j))
  for(int i=1;i<=N;i++){for(int j=1;j<=M;j++){
  cin>>A(i.vector<int>.j);
  
  }}
  int sum=0;
  int ans=0;
  for(int i=1;i<=N;i++){for(int j=1;j<=M;j++){
  sum+=A[i][j]*B[j];
  if(sum-=C>0){ans++;}
  
  }}
  cout<<ans<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'for'
    7 |     for(int k=1;k<=M;k++){cin>>B.at(k)}
      |     ^~~
a.cc:7:17: error: 'k' was not declared in this scope
    7 |     for(int k=1;k<=M;k++){cin>>B.at(k)}
      |                 ^
a.cc:8:25: error: 'i' was not declared in this scope
    8 |   vector<vector<int>> A(i,vector<int>(j))
      |                         ^
a.cc:8:39: error: 'j' was not declared in this scope
    8 |   vector<vector<int>> A(i,vector<int>(j))
      |                                       ^
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for(int i=1;i<=N;i++){for(int j=1;j<=M;j++){
      |   ^~~
a.cc:16:16: error: 'B' was not declared in this scope
   16 |   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.at(i);
  }
vector<vector<int>> a(n, vector<int>(m);
for (int i = 0; i < n; i++) {
 for (int j = 0; i < m; j++) {
 cin>>a[i][j];
}
}
int ans=0;
for (int i = 0; i < n; i++) {
  int sum=0;
 for (int j = 0; j < m; j++) {
 sum+=a[i][j]*b[j];
}
  sum+=c;
  if(sum>0){
    ans++;
  }
}                      
    cout<<ans<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:40: error: expected ')' before ';' token
   11 | vector<vector<int>> a(n, vector<int>(m);
      |                      ~                 ^
      |                                        )
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 < m; i++) {
    cin >> b.at(i);
  }
for (int i = 1; i <= n; i++) {
     vector<int> ai(n);
   for (int j = 0; j < m; j++) {
    cin >> ai.at(j);
  }
}
  vector<int> sum(n);
  for (int i = 0; i < n; i++) {
 sum[i]=0;
}
for (int i = 0; i < n; i++) {
  for (int j = 1; i <= m; j++) {
 sum[i]+=aj[i]*b[i]
}
}
  
  for (int i = 0; i < n; i++) {
 sum[i]-=c;
}
  int ans=0;
  for (int i = 0; i < n; i++) {
 if(sum[i]>0){
   ans++;
}
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: 'aj' was not declared in this scope; did you mean 'j'?
   23 |  sum[i]+=aj[i]*b[i]
      |          ^~
      |          j
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: expected '}' at end of input
   20 |   return 0;
      |            ^
a.cc:4:12: 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;
  
  //長さMの配列を作る。要素を０で初期化する。
  vector<int> B(M,0);
  for (int i=0;i<n;i++) cin >> B[i];
  
  //N*Mの配列を作る。
  //Aは、vector<int>の長さNの配列
  //これを、vector<int>(M)で初期化
  vector<vector <int>> A(N,vector<int>(M));
  for (int i=0;i<N;i++){
    for (int j=0;j<M;j++){
      cin >> A[i][j];
    }
  }
  
  int ans=0;
  for (int i=0;i<N;i++){
    int sum=0;
    for (int j=0;j<M;j++){
        sum+=A[i][j]*B[j];
    }
    sum+=C;
    if (sum>0) ans++;
  }
  cout << ans << endl;
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'n' was not declared in this scope
   10 |   for (int i=0;i<n;i++) cin >> B[i];
      |                  ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:29:8: error: 'points' was not declared in this scope; did you mean 'point'?
   29 |     if(points[i]+c>0)ans++;
      |        ^~~~~~
      |        point
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:28:8: error: 'points' was not declared in this scope; did you mean 'point'?
   28 |     if(points[i]+c>0)ans++;
      |        ^~~~~~
      |        point
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long; // ll は long long　と同じとする。
int main() {
    int N , M , C;
    cin >> N >> M >> C;
    for ( int i = 0; i < M ; ++ i ) {
        cin >> B.at(i);
    }
    vector < vector <int>> A (N , vector <int>( M ));
    for ( int i = 0; i < N ; ++ i ) {
        for ( int j = 0; j < M ; ++ j ) {
            cin >> A.at(i).at(j);
        }
    }
    int ans = 0;
    for(int i = 0; i < N; i++){
        int sum = 0;
        for(int j = 0; j < N; i++){
            sum+=A.at(i).at(j) * B.at(j);
        }
        if(sum + C > 0){
            ans++;
        }
    }
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'B' was not declared in this scope
    8 |         cin >> B.at(i);
      |                ^
a.cc:20:34: error: 'B' was not declared in this scope
   20 |             sum+=A.at(i).at(j) * B.at(j);
      |                                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long; // ll は long long　と同じとする。
int main() {
    int N , M , C;
    cin >> N >> M >> C;
    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.at(i).at(j);
        }
    }
    int ans = 0;
    for(int i = 0; i < N; i++){
        int sum = 0;
        for(int j = 0; j < N; i++){
            sum+=A.at(i).at(j) * B.at(j);
        }
        if(sum + C > 0){
            ans++;
        }
    }
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'B' was not declared in this scope
    8 |         cin >> B [ i ];
      |                ^
a.cc:20:34: error: 'B' was not declared in this scope
   20 |             sum+=A.at(i).at(j) * B.at(j);
      |                                  ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:22:2: error: expected ';' before 'ans'
   22 | 2
      |  ^
      |  ;
   23 | ans++;
      | ~~~
Language: C++

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

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

# include < bits / stdc ++. h >
using namespace std ;
int main () {

int N , M , C ; cin >> N >> M >> C ;
vector <int > B ( M );
for ( int i = 0; i < M ; ++ i ) {
cin >> B [ i ];
}
vector < vector <int >> A (N , vector <int >( M ));
for ( int i = 0; i < N ; ++ i ) {
for ( int j = 0; j < M ; ++ j ) {
cin >> A [ i ][ j ];
}
}

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

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

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

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

#include<bits/stdc++.h>

using namespace std;

int main(){
  int N,M,C;
  cin >> N >> M >> C;
  int B(M);

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

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

  cout << ans << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: invalid types 'int[int]' for array subscript
   11 |     cin >> B[i];
      |             ^
a.cc:24:25: error: invalid types 'int[int]' for array subscript
   24 |       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;
  int b[m];
  for(int i=0;i<m;i++){
      cin >> b[i];
  }
  int count = 0;
  for(int i=0;i<n;i++){
      int ans = 0;
      for(int k=0;k<m;k++){
          int a=0;
          cin >> a;
          ans += a*b[k]
      }
      ans += c;
      if(ans > 0) count++;
  }
  cout << count << endl;
}

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

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

int main() {
  int n,m,c;
  cin >>n >>m >>c;
  
 vector<int> B(m);
  for (int i=0 ; i<m ; i++) {
    cin >> B[i] ; //入力
  }
  vector<vector<int>> A(n,vector<int>(m)) ;
   for (int i=0; i<n ; i++ ) {
     for(int j=0 ;j<m ;j++){
       cin >> A[i][j] ;
     }
   }
  int ans=0 ;
  for (int i=0 ; i<n ;i++){
    int sum=0;
      for (int j=0; j<m ;j++){
        sum=+ A[i][j]*B[j] ;
          if(sum＋c>0) {
            ans++ ;
          }
      }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:14: error: 'sum\U0000ff0bc' was not declared in this scope
   23 |           if(sum＋c>0) {
      |              ^~~~~~