There was an error while loading. Please reload this page.
1 parent 47e61bd commit 329725dCopy full SHA for 329725d
scripts/run.sh
@@ -0,0 +1,13 @@
1
+#!/bin/bash
2
+
3
+# Compile the a.cpp file
4
+g++ -std=c++17 -Wall -Wextra -O2 a.cpp -o a.out
5
6
+# Check if the compilation was successful
7
+if [ $? -eq 0 ]; then
8
+ echo "Compilation successful. Running a.out..."
9
+ # Execute the a.out file
10
+ ./a.out
11
+else
12
+ echo "Compilation failed. Please check your code."
13
+fi
0 commit comments