Submission #786094

#TimeUsernameProblemLanguageResultExecution timeMemory
786094devariaotaJakarta Skyscrapers (APIO15_skyscraper)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long #define fi first #define se second #define endl "\n" #define pii pair<ll,ll> #define pb push_back #define vi vector<ll> #define pque priority_queue #define pqueg priority_queue<ll,vector<ll>,greater<ll>> #define que queue<ll> #define FOR(m,i,n) for(int i=(m); i<=(n); i++) #define FORM(m,i,n) for(int i=(m); i>=(n); i--) ll n,a,b; int main() { ios_base::sync_with_stdio(0); cin.tie(0); // TLE or not cin >> n >> m; FOR(1,i,m) { cin >> a >> b; } FOR(1,i,9e8) { a++; } cout << a << endl; }

Compilation message (stderr)

skyscraper.cpp: In function 'int main()':
skyscraper.cpp:20:15: error: 'm' was not declared in this scope
   20 |   cin >> n >> m;
      |               ^