Submission #362477

#TimeUsernameProblemLanguageResultExecution timeMemory
362477MoldovanAndrei1Vision Program (IOI19_vision)C++14
Compilation error
0 ms0 KiB
for(int j = 0; j < W - K;j++) { NS.clear(); NS.push_back(OP(l1,j)); NS.push_back(OP(l1,j+K)); int a=add_and(NS); poz++; r.push_back(poz); } int b=add_or(r); } if(c1 == c2) { std::vector<int>r; for(int i = 0 ;i < H-K;i++) { NS.clear(); NS.push_back(OP(i,c1)); NS.push_back(OP(i+K,c1)); int a=add_and(NS); poz++; r.push_back(poz); } int b=add_or(r); } }

Compilation message (stderr)

vision.cpp:2:9: error: expected unqualified-id before 'for'
    2 |         for(int j = 0; j < W - K;j++)
      |         ^~~
vision.cpp:2:24: error: 'j' does not name a type
    2 |         for(int j = 0; j < W - K;j++)
      |                        ^
vision.cpp:2:34: error: 'j' does not name a type
    2 |         for(int j = 0; j < W - K;j++)
      |                                  ^
vision.cpp:11:22: error: 'r' was not declared in this scope
   11 |         int b=add_or(r);
      |                      ^
vision.cpp:11:15: error: 'add_or' was not declared in this scope
   11 |         int b=add_or(r);
      |               ^~~~~~
vision.cpp:12:5: error: expected declaration before '}' token
   12 |     }
      |     ^
vision.cpp:13:5: error: expected unqualified-id before 'if'
   13 |     if(c1 == c2)
      |     ^~
vision.cpp:28:1: error: expected declaration before '}' token
   28 | }
      | ^