aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/cpp_ps.sh
blob: edf63123e570b54fc48ddf50bce6f774b511f5cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
echo -e "Are you sure? y)es n)o"
read input
if [ "$input" = "y" ]; then
  mkdir $1
  cd $1
  touch main.cpp
  echo -e "#include<bits/stdc++.h>\n\nusing namespace std;\n\nint main () {\n\tios_base::sync_with_stdio(false);\n\tcin.tie(NULL);\n\tint tt;\n\tcin >> tt;\n\twhile(tt--){\n\n\t}\n}" > main.cpp
  touch input.txt
  nvim main.cpp
fi