Codeforces will not be available in the period 01:00-05:00 May, 30 (MSK, UTC +3) because of maintenance. ×

touristnct's blog

By touristnct, history, 2 months ago, In English,

Hello everyone,I am using Far Manager here is the main page of Far as a IDE and this blog will

tell you how to compile and run C++ 17 (64 bit) on Far Manager

If you are using Windows, you can easily install it via our minimalistic package manager PBOX running the command line pbox

install msys2-mingw64-9

You can create file associations in Far Manager. Go to Menu (F9) -> Commands (C) -> File associations (A), then make a new file

association (Insert): g++ -static -DONLINE_JUDGE -Wl,--stack=268435456 -O2 -std=c++17 !.cpp -o !.exe like on this picture :

https://ibb.co/LhYrZWK

Now, when you press Enter on a file, say, sol.cpp, the command g++ -static -DONLINE_JUDGE -Wl,--stack=268435456 -O2 -std=c++17

sol.cpp -o sol.exe will be executed. If all is well, the executable file e.exe will appear. For this to work, g++ must be already

in your PATH. Otherwise, provide the full path, like C:\Programs\msys2-mingw64-9\bin instead of just g++.

 
 
 
 
  • Vote: I like it
  • +3
  • Vote: I do not like it

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by touristnct (previous revision, new revision, compare).

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by touristnct (previous revision, new revision, compare).