prog.cpp:3:11: error: '::main' must return 'int'
void main()
^
prog.cpp: In function 'int main()':
prog.cpp:7:5: error: 'cin' was not declared in this scope
cin.getline((p[i]),20);
^
prog.cpp:7:5: note: suggested alternative:
In file included from prog.cpp:2:0:
/usr/include/c++/4.9/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
prog.cpp:8:7: error: name lookup of 'i' changed for ISO 'for' scoping [-fpermissive]
for(i=0;i<10;i++)
^
prog.cpp:8:7: note: (if you use '-fpermissive' G++ will accept your code)
prog.cpp:10:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if((*(p[i]+j))=="T"||(*(p[i]+j))=="D"||(*(p[i]+j))=="L"||(*(p[i]+j))=="F")
^
prog.cpp:10:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if((*(p[i]+j))=="T"||(*(p[i]+j))=="D"||(*(p[i]+j))=="L"||(*(p[i]+j))=="F")
^
prog.cpp:10:62: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if((*(p[i]+j))=="T"||(*(p[i]+j))=="D"||(*(p[i]+j))=="L"||(*(p[i]+j))=="F")
^
prog.cpp:10:80: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if((*(p[i]+j))=="T"||(*(p[i]+j))=="D"||(*(p[i]+j))=="L"||(*(p[i]+j))=="F")
^
prog.cpp:12:13: error: 'cout' was not declared in this scope
cout<<k;}
^
prog.cpp:12:13: note: suggested alternative:
In file included from prog.cpp:2:0:
/usr/include/c++/4.9/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^