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

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

#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intll int long long
const int INF = 1e9;
const int MOD = 1e9 + 7;

int main() {
  intll a, b, c, d ;
  cin >> a >> b >> c >> d ; 
  
  intll ans = a*c ;
  ans = max(ans,a*d) ;
  ans = max(ans,b*c) ;
  ans = max(ans,b*d) ;
  
  if(b>0 || d>0) ans = max(ans,0) ; 
  cout << ans << endl ;
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: no matching function for call to 'max(long long int&, int)'
   19 |   if(b>0 || d>0) ans = max(ans,0) ;
      |                        ~~~^~~~~~~
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: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:19:27: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   19 |   if(b>0 || d>0) ans = max(ans,0) ;
      |                        ~~~^~~~~~~
/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:19:27: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   19 |   if(b>0 || d>0) ans = max(ans,0) ;
      |                        ~~~^~~~~~~
Language: C++

#include<bits/stdc++.h>

#define ull unsigned long long
#define ll long long
#define imei(...)   "[ "<< #__VA_ARGS__ <<" = "<< __VA_ARGS__ <<" ] "

using namespace std;

void solve(int t) {
    int n;
    cin >> n;
}

int main(int argc, char *argv[])
{
    ll a, b, c, d;
    ll ans;
    cin >> a >> b >> c >> d;

    ans = max({a*c, b*d, a*d, b*c});
    if ((a <= 0 && b >= 0) || (c <=0 && d >= 0)
            ans = max(0, ans);
    
    cout <<ans;

    return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:21:48: error: expected ';' before 'ans'
   21 |     if ((a <= 0 && b >= 0) || (c <=0 && d >= 0)
      |                                                ^
      |                                                ;
   22 |             ans = max(0, ans);
      |             ~~~                                 
a.cc:24:15: error: expected ')' before ';' token
   24 |     cout <<ans;
      |               ^
      |               )
a.cc:21:8: note: to match this '('
   21 |     if ((a <= 0 && b >= 0) || (c <=0 && d >= 0)
      |        ^
Language: C++

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

#define ll long long int
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define inf  1e18
#define mk(arr,n,type) type *arr=new type[n];
#define ti(arr,n) for(ll i=0;i<n;++i)cin>>a[i];
#define ot(arr,n) for(ll i=0;i<n;++i)cout<<a[i]<<" ";
#define str(a) string a;cin>>a;
#define w(x) int x;cin>>x;while(x--)
int main()
{
  ll a,b,c,d;
  cin>>a>>b>>c>>d;
  ll ans[4];
  ans[0]=a*c;ans[1]=a*d;ans[2]=b*c;ans[3]=b*d;
  cout<<*max_element(a,a+4);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: invalid type argument of unary '*' (have 'long long int')
   22 |   cout<<*max_element(a,a+4);
      |         ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:71,
                 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/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_less_iter::operator()(_Iterator1, _Iterator2) const [with _Iterator1 = long long int; _Iterator2 = long long int]':
/usr/include/c++/14/bits/stl_algo.h:5626:12:   required from 'constexpr _ForwardIterator std::__max_element(_ForwardIterator, _ForwardIterator, _Compare) [with _ForwardIterator = long long int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
 5626 |         if (__comp(__result, __first))
      |             ~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5650:43:   required from 'constexpr _FIter std::max_element(_FIter, _FIter) [with _FIter = long long int]'
 5650 |       return _GLIBCXX_STD_A::__max_element(__first, __last,
      |                                           ^
a.cc:22:21:   required from here
   22 |   cout<<*max_element(a,a+4);
      |          ~~~~~~~~~~~^~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:45:16: error: invalid type argument of unary '*' (have 'long long int')
   45 |       { return *__it1 < *__it2; }
      |                ^~~~~~
/usr/include/c++/14/bits/predefined_ops.h:45:25: error: invalid type argument of unary '*' (have 'long long int')
   45 |       { return *__it1 < *__it2; }
      |                         ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long int a,b,c,d;
  cin>>a>>b>>c>>d;
  long long int k=max(a,b);
  long long int l=max(c,d);
  if(k>=0&&l>=0){
    cout<<k*l;
  }
  if(k<0&&l<0){
    cout<<min(a,b)*min(c,d);
  }
  if(k<0){
    cout<<k*min(c,d);
  }
  if(l<0){
    cout<<min(a,b)*l;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'a' was not declared in this scope
    5 |   cin >> a >> b >> c >> d;
      |          ^
a.cc:5:15: error: 'b' was not declared in this scope
    5 |   cin >> a >> b >> c >> d;
      |               ^
a.cc:5:20: error: 'c' was not declared in this scope
    5 |   cin >> a >> b >> c >> d;
      |                    ^
a.cc:5:25: error: 'd' was not declared in this scope
    5 |   cin >> a >> b >> c >> d;
      |                         ^
a.cc:8:3: error: expected '}' before 'else'
    8 |   else {
      |   ^~~~
a.cc:6:21: note: to match this '{'
    6 |   if(a * c < b * d) {
      |                     ^
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    long long a, b, c, d;
    cin >> a >> b >> c >> d;
    long long t = a * c;
    long long s = b * d;
    long long t2 = b * c;
    long long s2 = d * a;
    long long g = 0;
    cout << max(t, max(s1, max(t2, s))) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: 's1' was not declared in this scope; did you mean 's2'?
   11 |     cout << max(t, max(s1, max(t2, s))) << endl;
      |                        ^~
      |                        s2
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    long long a, b, c, d;
    cin >> a >> b >> c >> d;
    
    long long K=a*c;
    long long L=a*d;
    long long M=b*c;
    long long N=b*d;
    
    long long ans=max(K, max(L,max(M,N)));
    
    cout << ans << endl;
    
    return 0;
 

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

#include<bits/stdc++.h>
using namespace std;
 
typedef long long ll;
#define rep(i,a,b) for (int i = a; i < b; i++)
#define repn(i,a,b) for (int i = a; i >=b ;i--)
#define MOD 1000000007


int main(){
ios::sync_with_stdio(0);
cin.tie(0);
    ll a,b,c,d;cin>>a>>b>>c>>d;
    ll ans=LLONG_MIN;
    ans=max({a*c,a*d,b*c,b*d});
    if((a<=0&&b>=0)||(c<=0&&d>=0))ans=max(ans,0);
    cout<<ans;
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:42: error: no matching function for call to 'max(ll&, int)'
   16 |     if((a<=0&&b>=0)||(c<=0&&d>=0))ans=max(ans,0);
      |                                       ~~~^~~~~~~
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: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:16:42: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   16 |     if((a<=0&&b>=0)||(c<=0&&d>=0))ans=max(ans,0);
      |                                       ~~~^~~~~~~
/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:16:42: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   16 |     if((a<=0&&b>=0)||(c<=0&&d>=0))ans=max(ans,0);
      |                                       ~~~^~~~~~~
Language: C++

#include<cstdio>
int main()
{
	long long a,b,c,d;
	scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
	long long ans = 0;
	ans = max(a*b,c*d);
	printf("%lld\n",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'max' was not declared in this scope
    7 |         ans = max(a*b,c*d);
      |               ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  ll a,b,c,d,p;
  cin>>a>>b>>c>>d;
  p=b*d;
  cout<<p;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'll' was not declared in this scope
    5 |   ll a,b,c,d,p;
      |   ^~
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>b>>c>>d;
      |        ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   cin>>a>>b>>c>>d;
      |           ^
a.cc:6:14: error: 'c' was not declared in this scope
    6 |   cin>>a>>b>>c>>d;
      |              ^
a.cc:6:17: error: 'd' was not declared in this scope
    6 |   cin>>a>>b>>c>>d;
      |                 ^
a.cc:7:3: error: 'p' was not declared in this scope
    7 |   p=b*d;
      |   ^
Language: C

#include <algorithm>  // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset>     // bitset
#include <cctype>     // isupper, islower, isdigit, toupper, tolower
#include <cstdint>    // int64_t, int*_t
#include <cstdio>     // printf
#include <deque>      // deque
#include <iomanip>    // fixed, setprecision
#include <iostream>   // cout, endl, cin
#include <map>        // map
#include <numeric>    // accumulate
#include <queue>      // queue, priority_queue
#include <set>        // set
#include <stack>      // stack
#include <string>     // string, to_string, stoi
#include <tuple>      // tuple, make_tuple
#include <unordered_map>  // unordered_map
#include <unordered_set>  // unordered_set
#include <utility>        // pair, make_pair
#include <vector>         // vector
using namespace std;
typedef long long ll;
typedef unsigned long long ull;

int main() {
  ll a, b, c, d, m = INT64_MIN;
  cin >> a >> b >> c >> d;
  m = max(m, a * c);
  m = max(m, a * d);
  m = max(m, b * c);
  m = max(m, b * d);
  if ((a <= 0 && 0 <= b) || (c <= 0 && 0 <= d)) {
    m = max(m, (ll)0);
  }
  cout << m << endl;
}


Compiler output:
main.c:1:10: fatal error: algorithm: No such file or directory
    1 | #include <algorithm>  // min, max, swap, sort, reverse, lower_bound, upper_bound
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  ll a[4], sup = 1000000000000000010;
  for(ll int i = 0; i < 4; i++) cin >> a[i];
  cout << max(max(a[0]*a[2],a[0]*a[3]),max(a[1]*a[2],a[1]*a[3]));
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: two or more data types in declaration of 'i'
    7 |   for(ll int i = 0; i < 4; i++) cin >> a[i];
      |       ^~
a.cc:7:21: error: 'i' was not declared in this scope
    7 |   for(ll int i = 0; i < 4; i++) cin >> a[i];
      |                     ^
Language: C++

#include<bits/stdc++.h>

// @author : sam000013

#define int long long

#define PI 3.14159265
#define pb(x) push_back(x)
#define all(v) v.begin(), v.end()
#define endl cout<<"\n" 
#define dbg(x) cout<<#x<<" "<<x;endl;
#define bye endl;return
#define uni 1.000000
using namespace std;

const int mod = 1000000007;
template<typename T>

void debug(vector<T> x){
for(auto e:x){
    cout<<e<<" ";
}
cout<<"\n";
}
/*


*/

void solve(){
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    int ans = INT64_MIN
    ans = max(a*c, ans);
    ans = max(a*d, ans);
    ans = max(b*c, ans);
    ans = max(b*d, ans);
    cout<<ans;bye;
}


signed main(){
    ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    int t = 1;
    //cin>>t;
    for(int i=1; i<=t; i++){
        solve();
    }
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:34:5: error: expected ',' or ';' before 'ans'
   34 |     ans = max(a*c, ans);
      |     ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	long long a,b,c,d;
  	cin >> a >> b >> c >> d;
  	
  	if(d=<0 && b>=0) cout << a * d << endl;
  	else if(b<=0 && d>=0)cout << b * c << endl;
  	else cout << b * d << endl;
  
  
  
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before '<' token
    8 |         if(d=<0 && b>=0) cout << a * d << endl;
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int64_t a,b,c,d;
  cin>>a>>b>>c>>d;
  if(a>=0&&c>=0){cout<<b*d<<endl;}
  else if(b<=0&&d<=0){cout<<a*c<<endl;}
  else{cout<<max(a*c,b*d)}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before '}' token
    8 |   else{cout<<max(a*c,b*d)}
      |                          ^
      |                          ;
Language: C++

#include<bits/stdc++.h>
#include<string>
//#include <boost/math/common_factor.hpp> 
using namespace std;
 

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'll' was not declared in this scope
    8 |     ll a,b,c,d;
      |     ^~
a.cc:9:10: error: 'a' was not declared in this scope
    9 |     cin>>a>>b>>c>>d;
      |          ^
a.cc:9:13: error: 'b' was not declared in this scope
    9 |     cin>>a>>b>>c>>d;
      |             ^
a.cc:9:16: error: 'c' was not declared in this scope
    9 |     cin>>a>>b>>c>>d;
      |                ^
a.cc:9:19: error: 'd' was not declared in this scope
    9 |     cin>>a>>b>>c>>d;
      |                   ^
a.cc:10:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   10 |     cout<<max({a*c,b*d,a*d,b*c});
      |           ~~~^~~~~~~~~~~~~~~~~~~
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: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/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, 1 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:   template argument deduction/substitution failed:
/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:   candidate expects 2 arguments, 1 provided
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define fi first
#define se second
#define pb push_back
#define pr pair<int,int>
#define PI 3.1415926535897932384626
#define mod 1000000007
#define fo(i,n) for(i=0;i<n;i++)
#define endl "\n"
#define mset(m,v) memset(m,v,sizeof(m))
#define max3(a,b,c) max(a,max(b,c))
#define min3(a,b,c) min(a,min(b,c))
typedef vector<int>	vi;
#define FAST_IO  ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)

void solve()
{
	int a,b,c,d,x=0,y=0;
	cin >> a >> b >> c >> d ;
	if(b<0 && d<0){
	    cout << a*c;
	}
	else if(b>0 || d>0){
	    cout << b*d;
	}
	else {
	    cout << min(b,d)*max(a,c);
	}
	cout << ans << endl;
}

int32_t main()
{
	FAST_IO;
	int t=1;//cin>>t;
	for(int i=1;i<=t;i++){	solve();}
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define int long long
using vec_int = vector<int>;
using P = pair<int,int>;
using T = tuple<int,int,int>;
using ll = long long;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

int charToInt(char c){
    char zero_num = '0';
    return (int)c - (int)zero_num;
}

signed main(){
    int a, b, c, d;cin>>a>>b>>c>>d;

    if(b>0&& d>0){
        cout<<b*d<<endl;
    }else if((b<=0 &&d>0)){
        cout << b*c<<endl;
    }else if( b>0 &&d<=0){
        cout<<a*d<<endl;
    }else{
        cout<<a*c<<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>
#define all(X) (X).begin(),(X).end()
#define rall(X) (X).rbegin(),(X).rend()
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define ff first
#define ss second
#define P 1000000007
#define in(x, a, b) (a <= x && x < b)

using namespace std;
using ll = long long;
typedef pair<int, int> ii;
typedef vector<ii> vii; 
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<vii> vvii;
const ll inf = 1000000001, INF = (ll)1e18 + 1;

void solve() {
	ll a, b, c, d;
	cin >> a >> b >> c >> d; 
	
	ll ans = -INF;
	ans = max(ans, a * c);
	ans = max(ans, a * d);
	ans = max(ans, b * c);
	ans = max(ans, a * d);
	if((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) ans = max(ans, 0);
	
	cout << ans << endl;
}

int main() {
	ios_base::sync_with_stdio(false);
	solve();
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:31:63: error: no matching function for call to 'max(ll&, int)'
   31 |         if((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) ans = max(ans, 0);
      |                                                            ~~~^~~~~~~~
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: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:31:63: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   31 |         if((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) ans = max(ans, 0);
      |                                                            ~~~^~~~~~~~
/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:31:63: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   31 |         if((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) ans = max(ans, 0);
      |                                                            ~~~^~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
using namespace std;


template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }

int main(){
    long long a,b,c,d;
    cin >> a >> b >> c >> d;
    long long max=LLONG_MIN;

    chmax(max, a*c);
    chmax(max, b*c);
    chmax(max, a*d);
    chmax(max, b*d);

    cout << max << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: 'LLONG_MIN' was not declared in this scope
   16 |     long long max=LLONG_MIN;
      |                   ^~~~~~~~~
a.cc:7:1: note: 'LLONG_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    6 | #include <unordered_set>
  +++ |+#include <climits>
    7 | using namespace std;
Language: C++

#include<bits/stdc++.h>

// @author : sam000013

#define int long long

#define PI 3.14159265
#define pb(x) push_back(x)
#define all(v) v.begin(), v.end()
#define endl cout<<"\n" 
#define dbg(x) cout<<#x<<" "<<x;endl;
#define bye endl;return
#define uni 1.000000
using namespace std;

const int mod = 1000000007;
template<typename T>

void debug(vector<T> x){
for(auto e:x){
    cout<<e<<" ";
}
cout<<"\n";
}
/*


*/

void solve(){
    int a,b,c,d;
    int ans = INT64_MIN
    ans = max(a*c, ans);
    ans = max(a*d, ans);
    ans = max(b*c, ans);
    ans = max(b*d, ans);
}


signed main(){
    ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    int t = 1;
    //cin>>t;
    for(int i=1; i<=t; i++){
        solve();
    }
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:33:5: error: expected ',' or ';' before 'ans'
   33 |     ans = max(a*c, ans);
      |     ^~~
Language: C++

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

int main(){
  long long a,b.c.d;
  cin>>a>>b>>c>>d;
  long long s=max(a*c,a*d);
  long long t=max(b*c,b*d);
  cout<<max(s,t)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected initializer before '.' token
    5 |   long long a,b.c.d;
      |                ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   cin>>a>>b>>c>>d;
      |           ^
a.cc:6:14: error: 'c' was not declared in this scope
    6 |   cin>>a>>b>>c>>d;
      |              ^
a.cc:6:17: error: 'd' was not declared in this scope
    6 |   cin>>a>>b>>c>>d;
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int64_t a,b,c,d;
  cin>>a,b,c,d;
  if(a>=0&&c>=0){cout<<b*d<<endl;}
  else if(b<=0&&d<=0){cout<<a*c<<endl;}
  else{cout<<max(a*c,b*d)}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before '}' token
    8 |   else{cout<<max(a*c,b*d)}
      |                          ^
      |                          ;
Language: C++

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

int main()
{
	ll a,b,c,d;
	cin>>a>>b>>c>>d;
	ll ans=(a*c);
	ans=mac(ans,a*d);
	ans=mac(ans,b*d);
	ans=mac(ans,b*c);
	cout<<ans<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'mac' was not declared in this scope
   10 |         ans=mac(ans,a*d);
      |             ^~~
Language: C

#include<stdio.h>
int main(){int a,b,c,d,g[5],max;
    scanf("%d%d%d%d",&a,&b,&c,&d);
    g[0]=a*c;
    g[1]=a*d;
    g[2]=b*c;
    g[3]=b*d;
    max=g[0];
    for(j=0;j<4;j++)
    {
        if(max<g[j])
        max=g[j];
    }
    printf("%d",max);
    return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
  long long int a,b,c,d,x,y;
  long long int mul[4];
  cin>>a>>b>>c>>d;
  mul[0]=b*d;
  mul[1]=a*c;
  mul[2]=a*d;
  mul[3]=b*c;
  sort(mul,mul+4);
  cout<<mul[3]<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |   sort(mul,mul+4);
      |   ^~~~
      |   short
Language: C++

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

int main(){
	int Arr[4];
	for(int i=0;i<4;i++) cin>>Arr[i];
	sort(Arr,Arr+n);
	cout<<max(Arr[0]*Arr[1],Arr[2]*Arr[3]);
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |         sort(Arr,Arr+n);
      |                      ^
      |                      yn
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define ALL(x) x.begin(),x.end()
#define MOD (1000000000+7)
using namespace std;
#define PI 3.14159265359
#define tMOD 998244353
#define mkpr(x,y) make_pair(x,y)


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




    
}#include <bits/stdc++.h>
#define ll long long
#define ALL(x) x.begin(),x.end()
#define MOD (1000000000+7)
using namespace std;
#define PI 3.14159265359
#define tMOD 998244353
#define mkpr(x,y) make_pair(x,y)


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




    
}

Compiler output:
a.cc:20:2: error: stray '#' in program
   20 | }#include <bits/stdc++.h>
      |  ^
a.cc:20:3: error: 'include' does not name a type
   20 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:30:5: error: redefinition of 'int main()'
   30 | int main(){
      |     ^~~~
a.cc:11:5: note: 'int main()' previously defined here
   11 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
#include<vector>
using namespace std;
typedef long long li;
#define yn(i) print((i)?"Yes":"No")
#define rep(i,n) for(int i=0;i<(n);i++)
#define df 0
template<class T> void print(const T& t){ cout << t << "\n"; }
template<class T, class... Ts> void print(const T& t, const Ts&... ts) { cout << t; if (sizeof...(ts)) cout << " "; print(ts...); }


int main() {
  vector<li> a(2),b(2);
  rep(i,2)cin >>a[i];
  rep(i,2)cin >>b[i];
  li s=a[0]*b[0];
  rep(i,2)rep(j,2) s=max(s,a[i]*b[j]);
  print(s);
}
#define df 0
#include<iostream>
#include<vector>
using namespace std;
typedef long long li;
#define yn(i) print((i)?"Yes":"No")
#define rep(i,n) for(int i=0;i<(n);i++)
#define df 0
template<class T> void print(const T& t){ cout << t << "\n"; }
template<class T, class... Ts> void print(const T& t, const Ts&... ts) { cout << t; if (sizeof...(ts)) cout << " "; print(ts...); }


int main() {
  vector<li> a(2),b(2);
  rep(i,2)cin >>a[i];
  rep(i,2)cin >>b[i];
  li s=a[0]*b[0];
  rep(i,2)rep(j,2) s=max(s,a[i]*b[j]);
  print(s);
}


Compiler output:
a.cc:28:24: error: redefinition of 'template<class T> void print(const T&)'
   28 | template<class T> void print(const T& t){ cout << t << "\n"; }
      |                        ^~~~~
a.cc:8:24: note: 'template<class T> void print(const T&)' previously declared here
    8 | template<class T> void print(const T& t){ cout << t << "\n"; }
      |                        ^~~~~
a.cc:29:37: error: redefinition of 'template<class T, class ... Ts> void print(const T&, const Ts& ...)'
   29 | template<class T, class... Ts> void print(const T& t, const Ts&... ts) { cout << t; if (sizeof...(ts)) cout << " "; print(ts...); }
      |                                     ^~~~~
a.cc:9:37: note: 'template<class T, class ... Ts> void print(const T&, const Ts& ...)' previously declared here
    9 | template<class T, class... Ts> void print(const T& t, const Ts&... ts) { cout << t; if (sizeof...(ts)) cout << " "; print(ts...); }
      |                                     ^~~~~
a.cc:32:5: error: redefinition of 'int main()'
   32 | int main() {
      |     ^~~~
a.cc:12:5: note: 'int main()' previously defined here
   12 | int main() {
      |     ^~~~
Language: C++

#include <iostream> 
using namespace std;

int main()
{
	long long a, b, c, d;
  	cin >> a >> b >> c >> d;
  
  	cout << max({0, b * d, a * c, a * d, b * c});
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    9 |         cout << max({0, b * d, a * c, a * d, b * c});
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/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, 1 provided
Language: C++

#include <bits/stdc++.h>
#include <atcoder/all>
#define FOR(i, a, n) for(int (i) = (int)(a); (i) < (int)(n); ++(i))
#define FORe(i, a, n) for(int (i) = (int)(a); (i) <= (int)(n); ++(i))
#define rFOR(i, a, n) for(int (i) = (int)(n)-1; (i) >= (int)(a); --(i))
#define rFORe(i, a, n) for(int (i) = (int)(n); (i) >= (int)(a); --(i))
#define REP(i, n) FOR((i), 0, (n))
#define REPe(i, n) FORe((i), 1, (n))
#define REPo(i, n) FORe((i), 0, (n))
#define rREP(i, n) rFOR((i), 0, (n))
#define rREPe(i, n) rFORe((i), 1, (n))
#define rREPo(i, n) rFORe((i), 0, (n))
#define rep(i, n) FOR((i), 0, (n))
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define fi first
#define se second
#define dup(x, y) (((x)+(y)-1)/(y))
#define vc(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
using namespace atcoder;
using ll = long long;
using ull = unsigned long long;
using P = pair<int,int>;
using pll = pair<ll,ll>;
using T = tuple<int,int,int>;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vs = vector<string>;
using vp = vector<P>;
using vt = vector<T>;

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

ll INF = 1e18;

int main() {
  ll a,b,c,d;
  cin>>a>>b>>c>>d;
  ll ans = -INF;

  chmax(ans, a*c);
  chmax(ans, a*d);
  chmax(ans, b*c);
  chmax(ans, b*d);

  cout << ans << endl;


  return 0;
}

Compiler output:
a.cc:2:10: fatal error: atcoder/all: No such file or directory
    2 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  ll a,b,c,d;
  cin>>a>>b>>c>>d;
  cout<<max(a*c,b*d);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll a,b,c,d;
      |   ^~
a.cc:5:8: error: 'a' was not declared in this scope
    5 |   cin>>a>>b>>c>>d;
      |        ^
a.cc:5:11: error: 'b' was not declared in this scope
    5 |   cin>>a>>b>>c>>d;
      |           ^
a.cc:5:14: error: 'c' was not declared in this scope
    5 |   cin>>a>>b>>c>>d;
      |              ^
a.cc:5:17: error: 'd' was not declared in this scope
    5 |   cin>>a>>b>>c>>d;
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  long long prod1 = a*c;
  long long prod2 = b*d;
  long long maxi = max(prod1,prod2);
  cout<<maxi<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected '}' at end of input
    9 |   cout<<maxi<<endl;
      |                    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
int main()
{
    ll a, b, c, d;
    cin >> a >> b >> c >> d;
    ll t1 = a * c;
    ll t2 = b * d;
    ll t3 = a * d;
    ll t4 = b * c;
    cout << max(max(t1, t2), max(t3, t4)) << endl;
}






Compiler output:
a.cc:1:10: fatal error: atcoder/all: No such file or directory
    1 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C

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

int main() {
  ll a, b, c, d;
  cin >> a >> b >> c >> d;
  ll ac = a * c;
  ll ad = a * d;
  ll bc = b * c;
  ll bd = b * d;
  ll result = max(ac, max(ad, max(bc, bd)));
  cout << result << endl;
}


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;
#define ll long long int
void solve()
{
	ll x,y
	int a,b,c,d;
	cin>>a>>b>>c>>d;
	x=max(a,b);
	y=max(c,d);
	cout<<x*y<<endl;
	return;
if(x)
x=0;
else
x=1;
cout<<x<<endl;
	
}
int main()
{
	solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:7:9: error: expected initializer before 'int'
    7 |         int a,b,c,d;
      |         ^~~
a.cc:8:14: error: 'a' was not declared in this scope
    8 |         cin>>a>>b>>c>>d;
      |              ^
a.cc:8:17: error: 'b' was not declared in this scope
    8 |         cin>>a>>b>>c>>d;
      |                 ^
a.cc:8:20: error: 'c' was not declared in this scope
    8 |         cin>>a>>b>>c>>d;
      |                    ^
a.cc:8:23: error: 'd' was not declared in this scope
    8 |         cin>>a>>b>>c>>d;
      |                       ^
a.cc:10:9: error: 'y' was not declared in this scope
   10 |         y=max(c,d);
      |         ^
Language: C++


#include "bits/stdc++.h"
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;

#define ub              upper_bound
#define lb              lower_bound
#define isrt            insert
#define clr             clear
#define rsz             resize
#define ff              first
#define ss              second
#define lli             long long int
#define pb              push_back
#define pf              push_front
#define mkp              make_pair
#define pii             pair<lli,lli>
#define vi              vector<int>
#define mii             map<lli,lli>
#define pqb             priority_queue<int>
#define pqs             priority_queue<int,vi,greater<int> >
#define setbits(x)      __builtin_popcountll(x)
#define zrobits(x)      __builtin_ctzll(x)
#define mod             1000000007
#define INF             1e9
#define ps(x,y)         fixed<<setprecision(y)<<x
#define mk(arr,n,type)  type *arr=new type[n];
#define w(x)            int x; cin>>x; while(x--)
#define all(v)          v.begin(),v.end()
#define endl            "\n"
const double PI = acos(-1);

typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;

lli maxm(lli a, lli b)
{
  return (a >= b ? a : b);
}


lli minm(lli a, lli b)
{
  return (a <= b ? a : b);
}

lli power(lli x, lli y, lli p)
{
  lli res = 1;

  x = x % p;
  if (x == 0)
    return 0;

  while (y > 0)
  {

    if (y & 1)
      res = (res * x) % p;


    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}

lli nCrmodp(lli n, lli r, lli p)
{
  if (r == 0)
    return 1;
  if (r == 1)
    return n;


  lli pro = 1, k = n;
  while (k > r)
  {
    pro *= k;
    pro %= p;
    --k;
  }

  k = 2;
  while (k <= (n - r))
  {
    pro *= power(k, (p - 2), p);
    pro %= p;
    ++k;
  }

  return pro;
}


lli first_big(lli n, lli k, vector<lli> arr)
{
  lli l, r, ans = n;
  l = 0;
  r = n - 1;

  while (l <= r) {
    lli m = l + (r - l) / 2;

    if (arr[m] > k) {
      ans = m;
      r = m - 1;
    }

    else
      l = m + 1;
  }

  return ans;
}

lli last_small(lli n, lli k, vector<lli> arr)
{
  lli l, r, ans = -1;
  l = 0;
  r = n - 1;

  while (l <= r)
  {
    lli mid = (l + r) / 2;

    if (arr[mid] <= k)
    {
      ans = mid;
      l = mid + 1;
    }
    else
      r = mid - 1;
  }

  return ans;
}

void c_p_c()
{
  ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#ifndef ONLINE_JUDGE
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
#endif
}

int main()
{
  c_p_c();

  lli a, b, c, d;

  cin >> a >> b >> c >> d;

  lli ans = 1e18;
  ans *= (-1);

  ans = maxm(ans, a * c);
  ans = maxm(ans, a * d);
  ans = mamx(ans, b * c);
  ans = maxm(ans, b * d);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:161:9: error: 'mamx' was not declared in this scope; did you mean 'maxm'?
  161 |   ans = mamx(ans, b * c);
      |         ^~~~
      |         maxm
Language: C++

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

using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using pii = pair<int,int>;
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
#define pb push_back


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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: no matching function for call to 'max(ll, ll, ll, ll)'
   14 |   cout<<max(a*c,a*d,b*c,b*d)<<endl;
      |         ~~~^~~~~~~~~~~~~~~~~
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: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 4 provided
/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, 4 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, 4 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:   candidate expects 2 arguments, 4 provided
Language: C++

mod=1000000007
ans=-pow(10,19)
arr=list(map(int,input().split()))
for i in range(0,2):
    for j in range(2,4):
        ans=max(ans,arr[i]*arr[j])
print(ans)


Compiler output:
a.cc:1:1: error: 'mod' does not name a type
    1 | mod=1000000007
      | ^~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define int long long
#define ll long long
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define endl '\n'
#define Endl '\n'
#define cont continue
#define gcd(a,b) __gcd(a,b)
#define lcm(a,b) a*b/__gcd(a,b)
#define pb push_back
#define mp make_pair
#define mem(x) memset(x, 0, sizeof(x))

const ll inf=1e18;
const int mod=1e9+7;
inline int bigmod(int B,int P){int R=1;while(P>0){if(P&1){R=(R*B)%mod;}P>>=1;B=(B*B)%mod;}return R;}
const int mxn = 2e5+10;

int Mod(int a) {
	return a%mod;
}
int Mul(int a, int b) {
	return Mod(Mod(a) * Mod(b));
}
int Add(int a, int b) {
	return Mod(Mod(a) + Mod(b));
}
//ll fact[mxn];
//ll in_fact[mxn];
//fact[0] = 1;
//for(ll i = 1; i < mxn; i++) {
	//fact[i] = (i*fact[i-1])%mod;
//}
//in_fact[mxn-1] = bigmod(fact[mxn-1],mod-2);
//for(ll i = mxn-2; i >= 0; i--) {
	//in_fact[i] = (in_fact[i+1] * (i+1))%mod;
//}
//ll c(ll n,ll r) {
	//ll ans = (fact[n] * (in_fact[r] * in_fact[n-r]%mod))%mod;
	//return ans;
//}


signed main(){
    fast;
	//freopen ("input.txt", "r", stdin);
	//freopen ("output.txt", "w", stdout);
    int tt = 1;
    //cin>>tt;
    for(int tc = 1; tc <= tt; tc++) {
        int a,b,c,d;
        cin>>a>>b>>c>>d;
        cout<<max({b*d,a*c,a*d,b*c)<<endl;
			
        
        
    }



return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:35: error: expected '}' before ')' token
   56 |         cout<<max({b*d,a*c,a*d,b*c)<<endl;
      |                   ~               ^
Language: C++

#include<bits/stdc++.h>
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
using namespace std;
// typedef tree<pair<int,int>, null_type, less<pair<int,int>>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
#define ll long long 
#define scn(n) scanf("%d",&n)
#define lscn(n) scanf("%lld",&n)
#define lpri(n) printf("%lld",n)
#define pri(n) printf("%d",n)
#define pln() printf("\n")
#define priln(n) printf("%d\n",n)
#define lpriln(n) printf("%lld\n",n)
#define rep(i,init,n) for(int i=init;i<n;i++)
#define pb push_back     
#define mp make_pair
#define F first
#define S second
#define gcd __gcd
#define inf INT_MAX
#define ninf INT_MIN   
#define linf LLONG_MAX
#define lninf LLONG_MIN   
const ll mod=1e9+7;
const int N=1e6+4;

int main()
{
	ll a,b,c,d; cin>>a>>b>>c>>d;

	ans = max({lninf,a*c,a*d,b*c,b*d});

	lpri(ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   32 |         ans = max({lninf,a*c,a*d,b*c,b*d});
      |         ^~~
      |         abs
Language: C++

#include<bits/stdc++.h>
#include <atcoder/all>
#define ll long long int
#define vec vector<ll>
#define mat vector<vector<ll>>

using namespace std;
using namespace atcoder;

const ll mod=1000000007;
const ll inf=LONG_LONG_MAX;
ll dx4[4]={1,0,-1,0};
ll dy4[4]={0,-1,0,1};
ll dx8[8]={1,0,-1,1,-1,1,0,-1};
ll dy8[8]={1,1,1,0,0,-1,-1,-1};

int main(){

  ll a,b,c,d;
  cin >> a >> b >> c >> d;
  ll x[4];
  x[0]=a*c;
  x[1]=a*d;
  x[2]=b*c;
  x[3]=b*d;
  sort(x,x+4);
  cout << x[3]  << endl;

  return 0;
}

Compiler output:
a.cc:2:10: fatal error: atcoder/all: No such file or directory
    2 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C

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

typedef long long ll;
typedef long double ld;

#define pb push_back

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

void solve()
{
				
	
	int a,b,c,d;
	cin>>a>>b>>c>>d;
	
	cout<<max({a*c,a*d,b*c,b*d});	
			
		
	
}

int main()
{
	
solve();
		
	
	
}

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>
#include<vector>
#include<algorithm>
#include<utility>
#include<climits>
#include<cmath>
#include<cstring>
#include<unordered_set>
#include<unordered_map>
#include<set>
#include<stack>
#include<queue>
#include<map>
using namespace std;
#define x first
#define y second
#define mp make_pair
#define endl "\n"
typedef long long ll;
int mod=(int)1e9+7;

int main() {
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
	int a,b,c,d;
	cin>>a>>b>>c>>d;
	ll ans=1ll*max(a,b)*max(c,d);
	ll temp=1ll**min(a,b)*min(c,d);
	ans=max(ans,temp);
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:21: error: invalid type argument of unary '*' (have 'int')
   28 |         ll temp=1ll**min(a,b)*min(c,d);
      |                     ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int maxn=1e5+13; 
typedef long long ll;
int main()
{
	int a,b,c,d;
	scanf("%d%d%d%d",&a,&b,&c,&d);
	ll ans=-1e18;
	ans=max(ans,ad);
	ans=max(ans,bc);
	ans=max(ans,ac);
	ans=max(ans,bd);
	printf("%lld",ans);
 } 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'ad' was not declared in this scope; did you mean 'd'?
   10 |         ans=max(ans,ad);
      |                     ^~
      |                     d
a.cc:11:21: error: 'bc' was not declared in this scope; did you mean 'c'?
   11 |         ans=max(ans,bc);
      |                     ^~
      |                     c
a.cc:12:21: error: 'ac' was not declared in this scope; did you mean 'c'?
   12 |         ans=max(ans,ac);
      |                     ^~
      |                     c
a.cc:13:21: error: 'bd' was not declared in this scope; did you mean 'd'?
   13 |         ans=max(ans,bd);
      |                     ^~
      |                     d
Language: C++

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

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    ll a, b, c, d;
    cin >> a >> b >> c >> d;
    cout << max(a * c, max(a * d, max(b * c, b * d))) << endl;

    return 0;
}


Compiler output:
a.cc:2:10: fatal error: atcoder/all: No such file or directory
    2 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.