foo.cpp:1:1: error: 'include' does not name a type
include <cstdio> include <cstring> include <string> include <algorithm>
^
foo.cpp:6:1: error: 'string' does not name a type
string gm="g odmrni";//good morning
^
foo.cpp: In function 'void read()':
foo.cpp:11:16: error: 'getchar' was not declared in this scope
char x=getchar();
^
foo.cpp: In function 'void work(int)':
foo.cpp:21:25: error: 'memset' was not declared in this scope
memset(num,0,sizeof(num));
^
foo.cpp:26:22: error: 'printf' was not declared in this scope
printf("Case #%d: ",t);
^
foo.cpp:28:17: error: 'strlen' was not declared in this scope
int n=strlen(lie);
^
foo.cpp:33:12: error: 'gm' was not declared in this scope
if(lie[i]==gm[j])
^
foo.cpp:45:19: error: 'min' was not declared in this scope
ans=min(ans,num[i]);
^
foo.cpp: In function 'void readdata()':
foo.cpp:50:16: error: 'scanf' was not declared in this scope
scanf("%d\n",&T);
^