foo.cpp: In function 'int dp()':
foo.cpp:12:27: error: 'memset' was not declared in this scope
memset(temp,0,sizeof(temp));
^
foo.cpp:41:4: error: expected primary-expression before ')' token
if()
^
foo.cpp: At global scope:
foo.cpp:67:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
foo.cpp: In function 'int main()':
foo.cpp:79:2: error: incompatible types in assignment of 'int' to 'int [9][9]'
a=temp-'0';
^
foo.cpp:73:9: warning: unused variable 'temp' [-Wunused-variable]
int i=0,temp=0,j;
^
foo.cpp:73:16: warning: unused variable 'j' [-Wunused-variable]
int i=0,temp=0,j;
^