Find out why it can't be run under gcc for that sometimes s will larger than MAXN that will cause f[s] doesn't exist. LOL