ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

директивы не воспринимает компилятор (с++ gcc 13.2 x64)
Posted by Dmitry 23 Aug 2024 13:21
Здравствуйте!
Не воспринимает компилятор директивы
#include <iostream>
#include <map>
#include <vector>
#include <algorithm>
#include <tuple>
#include <string>

Ошибка:
fatal error: map: No such file or directory
    2 | #include <map>
      |          ^~~~~
compilation terminated.

-----------------------------------------------
В чём проблема?
Re: директивы не воспринимает компилятор (с++ gcc 13.2 x64)
Posted by Keworker `~ 24 Aug 2024 11:31
Hello. It's better to use English at forum)

Idk why your code don't work, but with "G++ 13.2 x64" u can use:

#include <bits/stdc++.h>

It is basically a header file that includes every standard library. If u use it you don't need to include anything else from STL.
Re: директивы не воспринимает компилятор (с++ gcc 13.2 x64)
Posted by Vladimir Yakovlev (USU) 11 Sep 2024 01:36
Use G++ instead of GCC