Problem 727
User JoshJuice
Submission Time 2025-03-26 00:08:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

727.cpp: In function ‘int main()’:
727.cpp:5:5: error: ‘ll’ was not declared in this scope
5 | ll n; string s; cin >> n >> s;
| ^~
727.cpp:5:28: error: ‘n’ was not declared in this scope
5 | ll n; string s; cin >> n >> s;
| ^
727.cpp:6:7: error: expected ‘;’ before ‘maxLength’
6 | ll maxLength = 0, startIdx = -1, endIdx = -1, currentLength = 0, currentStart = -1;
| ^~~~~~~~~~
| ;
727.cpp:7:12: error: expected ‘;’ before ‘i’
7 | for (ll i = 0; i < n; i++) {
| ^~
| ;
727.cpp:7:20: error: ‘i’ was not declared in this scope
7 | for (ll i = 0; i < n; i++) {
| ^
727.cpp:8:30: error: ‘currentLength’ was not declared in this scope
8 | char expectedChar = (currentLength % 2 == 0) ? '7' : '2';
| ^~