mirror of
https://gitlab.com/mfocko/Codeforces.git
synced 2024-11-09 21:59:06 +01:00
chore: add commonly used files
* add makefile * add c++ skeleton Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
274174db2f
commit
a92e9dac08
2 changed files with 22 additions and 0 deletions
8
.common/makefile
Normal file
8
.common/makefile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
CXX=clang++
|
||||||
|
CXXFLAGS=-std=c++20 -Wall -Wextra
|
||||||
|
|
||||||
|
main: format main.cpp
|
||||||
|
$(CXX) $(CXXFLAGS) -g main.cpp -o main
|
||||||
|
|
||||||
|
format:
|
||||||
|
clang-format -i -style=google main.cpp
|
14
.common/skeleton.cpp
Normal file
14
.common/skeleton.cpp
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
|
void solve() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
solve();
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue