0_0_30342554_11957.cpp:5:7: error: 'inf' does not name a type const inf=-1e9; ^ 0_0_30342554_11957.cpp: In function 'int main()': 0_0_30342554_11957.cpp:14:14: error: 'inf' was not declared in this scope memset(ans,inf,sizeof(ans)); ^