aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/cpp_ps.sh
blob: ac0eb2dc7a1aa4111bef451458f0272933142587 (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 inp
  nvim main.cpp
fi