Problem ssq
User AndyChen
Submission Time 2026-11-11 11:36:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ssq.cpp: In function ‘int main()’:
ssq.cpp:13:9: error: conflicting declaration ‘long long int a’
13 | int a, b;
| ^
ssq.cpp:9:18: note: previous declaration as ‘std::vector<char> a’
9 | vector<char> a(n);
| ^
ssq.cpp:29:22: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive]
29 | a++;
| ~^~
ssq.cpp:35:19: error: no match for ‘operator>=’ (operand types are ‘std::vector<char>’ and ‘long long int’)
35 | if (a >= k && b >= k){
| ~ ^~ ~
| | |
| | long long int
| std::vector<char>
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from ssq.cpp:1:
/usr/include/c++/9/bits/regex.h:1070:5: