Problem charges
User Dynonychus
Submission Time 2024-01-11 20:49:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

charges.cpp:6:1: error: ‘deq’ does not name a type
6 | deq<pair<int,bool>> deq(100009);
| ^~~
charges.cpp: In function ‘std::pair<long long int, bool> par(long long int)’:
charges.cpp:9:5: error: ‘deq’ was not declared in this scope
9 | if(deq.at(a).first == a)
| ^~~
charges.cpp:12:26: error: ‘deq’ was not declared in this scope
12 | pair<int,bool> pa = par(deq.at(a).first);
| ^~~
charges.cpp: In function ‘int main()’:
charges.cpp:22:8: error: expected primary-expression before ‘;’ token
22 | int b=;0
| ^
charges.cpp:22:10: error: expected ‘;’ before ‘char’
22 | int b=;0
| ^
| ;
23 | char c;
| ~~~~
charges.cpp:28:3: error: ‘deq’ was not declared in this scope
28 | deq.at(i) = {i, 0};
| ^~~
charges.cpp:31:8: error: ‘c’ was not declared in this scope
31