GithubHelp home page GithubHelp logo

codeict / cp-vscode-setup Goto Github PK

View Code? Open in Web Editor NEW
37.0 37.0 14.0 28 KB

A Competitive Programming Setup (C++) in Windows and Ubuntu

License: MIT License

C++ 98.20% Shell 0.76% Batchfile 1.04%
hactoberfest

cp-vscode-setup's People

Contributors

codeict avatar kartikeysharma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cp-vscode-setup's Issues

Error in launch.json under Windows 10

the following code does not work for me under Windows 10 with Visual Studio Code:

"args": ["<${fileDirname}//input.txt", ">${fileDirname}//output.txt"],

This works though:

"args": ["<", "${fileDirname}\\input.txt", ">", "${fileDirname}\\output.txt"],

New Path from VSCode Docs

The build settings do not work when following the updated VS Code Docs for installing Mingw64. The new path as recommended does not match the tasks.json file and results in errors to build and output.

New path: C:\msys64\mingw64\bin
Existing path: C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe

I was able to update the path in tasks.json but I am getting an error where I cannot open output file 1.exe.

[Running] cd "c:\Users\ricky\CP-VSCode-Setup-main\Current\" && g++ 1.cpp -o 1 && "c:\Users\ricky\CP-VSCode-Setup-main\Current\"1
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file 1.exe: Permission denied
collect2.exe: error: ld returned 1 exit status

[Done] exited with code=1 in 1.012 seconds

cStandard

I'm having problems with the cStandard not beeing accepted.

image

Custom template

Greetings, Sir. I love your setup, but I have my own template, and I want to add some notes. I can copy-paste it every time from another file on my pc, but it's not useful, because if I will use .\window-reset.bat and it will reset to defaults. Which is not so comfortable to me. Thanks.

Issue with VS code Path

while changing the path, new path in C_cppproperties is : "C:\msys64\mingw64\bin\gcc.exe"
but it shows error in "cStandard": "gnu18"
and after hovering over it says :

Version of the C language standard to use for IntelliSense. Note: GNU standards are only used to query the set compiler to get GNU defines, and IntelliSense will emulate the equivalent C standard version.

Value is not accepted. Valid values: "c89", "c99", "c11", "c17", "gnu89", "gnu99", "gnu11", "gnu17", "${default}".(1)

please reply soon!
Thank You

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.