Problem lis_easy
User 2Princes1Lance
Submission Time 2023-11-26 17:43:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int _lis(int*, int, int*)’:
lis_easy.cpp:8:21: error: expected ‘;’ before ‘int’
8 | return 1
| ^
| ;
9 | int res, max_ending_here = 1;
| ~~~
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:28:5: error: ‘string’ was not declared in this scope
28 | string transfer;
| ^~~~~~
lis_easy.cpp:28:5: note: suggested alternatives:
In file included from /usr/include/c++/9/iosfwd:39,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from lis_easy.cpp:1:
/usr/include/c++/9/bits/stringfwd.h:79:33: note: ‘std::string’
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/9/bits/locale_