Submission #260012

# Submission time Handle Problem Language Result Execution time Memory
260012 2020-08-08T22:51:52 Z s_avila_g Strange Device (APIO19_strange_device) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define ff first
#define ss second
map<pair<ll,ll>, ll> mp;

int main(){
    ll n,a,b,x1,y1;
    cin>>n>>a>>b;
    for(int i = 0; i < n; i++){
        cin>>x1>>y1;
        for(ll i = x1; i <= y1; i++){
            mp[make_pair((2*t) % a,0)]++;
        }
    }
    cout<<mp.size()<<endl;
}

Compilation message

strange_device.cpp: In function 'int main()':
strange_device.cpp:14:29: error: 't' was not declared in this scope
             mp[make_pair((2*t) % a,0)]++;
                             ^