LoginSignup
1
1

More than 3 years have passed since last update.

C++の実行まで

Last updated at Posted at 2020-02-21

はじめに

C++で競技プログラミングを始めてみようと思いましたので、
実行方法までをまとめました。

プログラム

下記のファイルを作成します。

file.cpp
#include<stdio.h>

int main(){
    printf("Accepted!\n");
    return 0;
}

コンパイルと実行

コンパイルするとa.outというファイルができるのでそれを実行します。
Accepted!と表示されていれば成功です。

$ c++ file.cpp
$ ./a.out
Accepted!
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1