prog.cpp:11:25: error: ‘string’ has not been declared
ll palindrome_partition(string &s,ll i, ll j)
^~~~~~
prog.cpp:33:16: error: ‘string’ has not been declared
int minCut(string s) {
^~~~~~
prog.cpp: In member function ‘long long int Solution::palindrome_partition(int&, long long int, long long int)’:
prog.cpp:21:10: error: ‘INT_MAX’ was not declared in this scope
ll mina=INT_MAX;
^~~~~~~
prog.cpp:21:10: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
prog.cpp:1:1:
+#include <climits>
prog.cpp:21:10:
ll mina=INT_MAX;
^~~~~~~
prog.cpp:27:8: error: ‘min’ was not declared in this scope
mina=min(mina,tempans);
^~~
prog.cpp:27:8: note: suggested alternative: ‘mina’
mina=min(mina,tempans);
^~~
mina
prog.cpp: In member function ‘int Solution::minCut(int)’:
prog.cpp:34:14: error: request for member ‘length’ in ‘s’, which is of non-class type ‘int’
if(s.length()==0) return 0;
^~~~~~
prog.cpp:35:9: error: ‘memset’ was not declared in this scope
memset(dp,-1,sizeof(dp));
^~~~~~
prog.cpp:35:9: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
prog.cpp:1:1:
+#include <cstring>
prog.cpp:35:9:
memset(dp,-1,sizeof(dp));
^~~~~~
prog.cpp:37:16: error: request for member ‘length’ in ‘s’, which is of non-class type ‘int’
ll n=s.length();
^~~~~~
prog.cpp:44:10: error: invalid types ‘int[int]’ for array subscript
if(s[i]==s[i+1])
^
prog.cpp:44:18: error: invalid types ‘int[int]’ for array subscript
if(s[i]==s[i+1])
^
prog.cpp:52:11: error: invalid types ‘int[int]’ for array subscript
if(s[j]==s[j+i] and pal[j+1][j+i-1]==1)
^
prog.cpp:52:19: error: invalid types ‘int[int]’ for array subscript
if(s[j]==s[j+i] and pal[j+1][j+i-1]==1)
^