Montenegro and France featured in a thriller to open the European Water Polo Championships 2024 in Dubrovnik, Croatia.