Submission #301267

#TimeUsernameProblemLanguageResultExecution timeMemory
301267eagle30Rectangles (IOI19_rect)C++14
Compilation error
0 ms0 KiB
#include "rect.h" #include<bits/stdc++.h> #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC target("avx,avx2,fma") using namespace std; long long count_rectangles(vector<vector<int> > a){ int m=a[0].size(); int coun=0; for(int k=1; k<m-1; k++){ int mini=2e9; for(int l=k; l<m-1; l++){ mini=min(mini, a[1][l]); if(a[1][l]>=a[0][l] || a[1][l]>=a[2][l] || a[1][l]>=a[1][k-1] || mini>=a[1][l+1]) is=false; if(is) coun++; } } return coun; }

Compilation message (stderr)

rect.cpp: In function 'long long int count_rectangles(std::vector<std::vector<int> >)':
rect.cpp:15:17: error: 'is' was not declared in this scope
   15 |                 is=false;
      |                 ^~
rect.cpp:16:16: error: 'is' was not declared in this scope
   16 |             if(is)
      |                ^~