Problem jaydenscurve
User Zubair
Submission Time 2026-06-26 16:03:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

jaydenscurve.cpp: In function ‘int main()’:
jaydenscurve.cpp:10:10: error: expected ‘,’ before ‘-’ token
10 | if([j-1]=="#") {
| ^
| ,
jaydenscurve.cpp:10:10: error: expected identifier before ‘-’ token
jaydenscurve.cpp: In lambda function:
jaydenscurve.cpp:10:13: error: expected ‘{’ before ‘==’ token
10 | if([j-1]=="#") {
| ^~
jaydenscurve.cpp: In function ‘int main()’:
jaydenscurve.cpp:10:13: error: no match for ‘operator==’ (operand types are ‘main()::<lambda()>’ and ‘const char [2]’)
10 | if([j-1]=="#") {
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from jaydenscurve.cpp:1:
/usr/include/c++/9/bits/regex.h:1026:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator==(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_mat