Problem cinema
User gghx
Submission Time 2024-11-26 07:47:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cinema.cpp: In function ‘int main()’:
cinema.cpp:39:29: error: ‘a’ was not declared in this scope
39 | else if(it == S.begin()||a.first==x+1){
| ^
cinema.cpp:41:10: error: redeclaration of ‘auto a’
41 | auto a = *it;
| ^
cinema.cpp:39:29: note: ‘<typeprefixerror>a’ previously declared here
39 | else if(it == S.begin()||a.first==x+1){
| ^
cinema.cpp:57:10: error: redeclaration of ‘auto a’
57 | auto a = *it2;
| ^
cinema.cpp:39:29: note: ‘<typeprefixerror>a’ previously declared here
39 | else if(it == S.begin()||a.first==x+1){
| ^