The Karnataka High Court on Thursday directed the State government to offer compensation to the kin of a student who died of electrocution after a pole he was carrying to hoist the national flag on Independence day came into contact with a live wire.