Submission #536254

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
5362542022-03-12 16:41:26TadiornFoehn Phenomena (JOI17_foehn_phenomena)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#define fi first
#define se second
#define ll long long
#define pii pair<int,int>
#define pll pair<long long,long long>
#define INF 1000000000
#define LINF 1000000000000000000
#define pb push_back
using namespace std;
#define MAXN 200010
ll a[MAXN];
ll seg[4*MAXN];
ll lazy[4*MAXN];
void propagate(int node, int l, int r){
if(l == r){
seg[node] += lazy[node];
lazy[node] = 0;
return;
}
lazy[2*node] += lazy[node]; lazy[2*node+1] += lazy[node];
lazy[node] = 0;
return;
}
void update(int node, int l, int r, int L, int R, ll x){
//cout << "START " << node << ", " << l << ", " << r << endl;
propagate(node, l, r);
if(L <= l && r <= R){
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

foehn_phenomena.cpp: In function 'int main()':
foehn_phenomena.cpp:4:12: error: expected unqualified-id before 'long'
    4 | #define ll long long
      |            ^~~~
foehn_phenomena.cpp:71:19: note: in expansion of macro 'll'
   71 |         int l, r, ll x; cin >> l >> r >> x; l++, r++;
      |                   ^~
foehn_phenomena.cpp:71:42: error: 'x' was not declared in this scope
   71 |         int l, r, ll x; cin >> l >> r >> x; l++, r++;
      |                                          ^