# 컴파일러 / 인터프리터

{% hint style="info" %}

* 명령어는 BOJ Help의 [언어 정보](https://help.acmicpc.net/language/info)와 유사하게 구성하였습니다.
* 사용할 언어의 CLI가 환경변수에 등록되어 `--version` 명령어로 확인할 수 있어야 합니다.
  {% endhint %}

## OS 공통

### Java11

컴파일

```bash
$ javac --release 11 -J-Xms1024m -J-Xmx1920m -J-Xss512m -encoding UTF-8 Main.java
```

실행

```bash
$ java -Xms1024m -Xmx1920m -Xss512m -Dfile.encoding=UTF-8 -XX:+UseSerialGC Main
```

### node.js

실행

```bash
$ node 파일명.js
```

### Python3

실행

```bash
$ python3 -W ignore 파일명.py
```

## Mac

***

### C++17

컴파일

```bash
$ g++ 파일명.cc -o 파일명 -std=c++17
```

실행

```bash
$ ./파일명
```

### C++14

컴파일

```bash
$ g++ 파일명.cc -o 파일명 -std=c++14
```

실행

```bash
$ ./파일명
```

***

## Windows

### C++17

컴파일

```bash
$ g++ 파일명.cpp -o 파일명 -std=gnu++17 -O2 -Wall -lm -static
```

실행

```bash
$ 파일명.exe
```

### C++14

컴파일

```bash
$ g++ 파일명.cpp -o 파일명 -std=gnu++14 -O2 -Wall -lm -static
```

실행

```bash
$ 파일명.exe
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://boj-ide.gitbook.io/boj-ide-docs/note/cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
