prog.cpp: In function 'char encryptpass(char*)':
prog.cpp:10:29: error: array must be initialized with a brace-enclosed initializer
char enpass[10]= ++pass[i];
^
prog.cpp:11:11: error: 'enpass' was not declared in this scope
return(enpass);
^
prog.cpp: In function 'char decryptpass(char*)':
prog.cpp:18:20: error: array must be initialized with a brace-enclosed initializer
char depass[10]= --str;
^
prog.cpp:19:8: error: 'depass' was not declared in this scope
return(depass);
^
prog.cpp: In function 'int main()':
prog.cpp:32:11: error: 'enpass' was not declared in this scope
file<<enpass[10];
^
prog.cpp:37:8: error: 'pass' was not declared in this scope
cin>>pass;
^
prog.cpp:40:4: error: 'file' was not declared in this scope
file.seekg(ios::beg);
^
prog.cpp:45:14: error: 'depass' was not declared in this scope
if(pass=depass) // decrypted password is equal to input password ?
^
prog.cpp:54:2: error: expected '}' at end of input
} // end of main
^