Problem lightningrod
User TheInvadr
Submission Time 2024-12-26 11:31:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp:14:1: error: expected initializer before ‘vector’
14 | vector<int> s;
| ^~~~~~
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:29:17: error: ‘s’ was not declared in this scope
29 | s.push_back(x);
| ^
lightningrod.cpp:31:17: error: ‘barr’ was not declared in this scope; did you mean ‘arr’?
31 | barr[x]=true;
| ^~~~
| arr
lightningrod.cpp:35:21: error: ‘s’ was not declared in this scope
35 | for(int x : s){
| ^
lightningrod.cpp:36:24: error: ‘mp’ was not declared in this scope
36 | if(x-1>=0&&mp[x-1])barr[x-1]=false;
| ^~
lightningrod.cpp:36:32: error: ‘barr’ was not declared in this scope; did you mean ‘arr’?
36 | if(x-1>=0&&mp[x-1])barr[x-1]=false;
|