Does it have to punch through the Warship's armor belt or is, like, breaking a bridge window still damage?
More seriously, this is probably easy to get a good calc on. Rolled Homogenous Steel was what they predominantly used on ships in those days and also what an Abram's main gun is measured in penetrating power.
Assuming it's got the typical 120mm smoothbore firing tungsten penetrators it's rated for
470mm, 19in of steel armor at 2,000 yards. The higher-end Sabot rounds are rated for
800mm, 31in of steel armor. Those are the official figures, anyway.
The
Iowa class had about 12.5 inches of armor and
Yamato had 16.5, and those were about as tough as it got. So at point-blank range, it looks to me like an Abrams could expect to penetrate their armor with a direct hit. This is primarily because of the absurdly short range, however, those ships expected to engage at ten to twenty times the distance we're putting our tank at here.
That's sufficient to do
damage, however the tank would need to fire for days, maybe even weeks to actually sink one, the amount of damage is also going to be really, really paltry.