Submission #582159

# Submission time Handle Problem Language Result Execution time Memory
582159 2022-06-23T13:04:41 Z TimDee Colouring a rectangle (eJOI19_colouring) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define forn(i,n) for (int i=0; i<n; ++i)

int32_t main() {
  
  int n,m; cin>>n>>m;
  vector<int> a(n+m-1,linf), b(n+m-1,linf);
  forn(i,n+m-1) cin>>a[i];
  forn(i,n+m-1) cin>>b[i];
  int ans=0;
  forn(i,n+m-1) ans+=min(a[i],b[i]);
  cout<<ans<<'\n';
  
  return 0;
}

Compilation message

colouring.cpp: In function 'int32_t main()':
colouring.cpp:9:23: error: 'linf' was not declared in this scope; did you mean 'sinf'?
    9 |   vector<int> a(n+m-1,linf), b(n+m-1,linf);
      |                       ^~~~
      |                       sinf