Language: C++

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

int main() {
 	//1行目
  int N,M,Q;
  cin >> N >> M >> Q ;
    //2行目以降を受け取る
  vector<int>a(Q);
  vector<int>b(Q);
  vector<int>c(Q);
  vector<int>d(Q);
  
  for(int i=0 ; i<Q ; i++){
  	cin >> a.at(i) >> b.at(i) >> c.at(i) >> d.at(i);
  }
 
  
 /* for(int i=0 ; i<Q ; i++){
  	cout << a.at(i) << " " << b.at(i) << " " << c.at(i) << " " << d.at(i) << endl;
  }*/
	//条件を判定する式
  
  vector<int>A(N);
  
  A(0) = 1;
  
  int count_max = 0;
  
  int colmn_count;
  
  //3つの場合で考えてみる
  mini_counter = 0;
  for(int i = 0 ; i<M ; i++){
  		
  }
  
 vector<vector<int>> box(, vector<int>(N));
  
  for(box)
  
  //3つの場合終わり
  
  	for(int i = 0 ; i<Q ; i++){
  		if(A(b.at(i)) - A(a.at(i)) == c.at(i)){
    		count = count + d.at(i);
    	}
  	}
  
  	count_max = max(count,count_max);
 
  
  cout << count_max << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:4: error: no match for call to '(std::vector<int>) (int)'
   26 |   A(0) = 1;
      |   ~^~~
a.cc:33:3: error: 'mini_counter' was not declared in this scope
   33 |   mini_counter = 0;
      |   ^~~~~~~~~~~~
a.cc:38:26: error: expected primary-expression before ',' token
   38 |  vector<vector<int>> box(, vector<int>(N));
      |                          ^
a.cc:40:10: error: expected ';' before ')' token
   40 |   for(box)
      |          ^
      |          ;
a.cc:44:25: error: 'i' was not declared in this scope
   44 |         for(int i = 0 ; i<Q ; i++){
      |                         ^
a.cc:50:24: error: no matching function for call to 'max(<unresolved overloaded function type>, int&)'
   50 |         count_max = max(count,count_max);
      |                     ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:20: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const int&'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |         ~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   couldn't deduce template parameter '_Tp'
   50 |         count_max = max(count,count_max);
      |                     ~~~^~~~~~~~~~~~~~~~~