// C #include <stdio.h> int main() { printf("An error occurred\n"); return 0; }
// cpp #include <iostream> int main() { std::cout << "An error occurred" << std::endl; return 0; }
// Java public class Main { public static void main(String[] args) { System.out.println("An error occurred"); } }
// JavaScript console.log("An error occurred\n")
// Python print "An error occurred"