Live Input Output (Competitive Programming) setup in VS CODE for C/C++ (WINDOWS) 5hfT on May 22, 2020 How to install and setup vs code for competitive programming with c/c++ for Windows Users install vs code Download vs code ... Read full post Submit Preview Dismiss Collapse Expand Vijay Vijay Vijay Follow Joined Oct 9, 2018 • Sep 15 '20 Dropdown menu Copy link Hide Hey. Thanks for this nice guidelines. I'm getting below error. Can you please help ? > Executing task: cp d:\extra\cpp\hello.cpp D:\extra\cpp && g++ hello.cpp -o test.out && ./test.out < input.txt > output.txt && rm *out && rm hello.cpp < cp: cannot stat 'd:extracpphello.cpp': No such file or directory The terminal process "C:\Program Files\Git\bin\bash.exe '-c', ' cp d:\extra\cpp\hello.cpp D:\extra\cpp && g++ hello.cpp -o test.out && ./test.out < input.txt > output.txt && rm *out && rm hello.cpp'" failed to launch (exit code: 1). Terminal will be reused by tasks, press any key to close it. Enter fullscreen mode Exit fullscreen mode Collapse Expand 5hfT 5hfT 5hfT Follow Love to learn core & fundamental concepts, think & write code, accept challenges, solve real world problems with cutting edge technologies. Email mhshifat757@gmail.com Location Dhaka Education B.Sc in Software Engineering Work Associate Software Engineer at Dynamic Solution Innovators Ltd. Joined Dec 15, 2019 • Sep 15 '20 Dropdown menu Copy link Hide Recently i have added some changes for windows hope this will help. Please check this out github.com/jspw/VS-Code-Config/iss... Collapse Expand Vijay Vijay Vijay Follow Joined Oct 9, 2018 • Sep 15 '20 Dropdown menu Copy link Hide Hmm. I moved the cpp file in there own folder as mentioned in the link. But still no luck :( 5hfT 5hfT 5hfT Follow Love to learn core & fundamental concepts, think & write code, accept challenges, solve real world problems with cutting edge technologies. Email mhshifat757@gmail.com Location Dhaka Education B.Sc in Software Engineering Work Associate Software Engineer at Dynamic Solution Innovators Ltd. Joined Dec 15, 2019 • Sep 15 '20 Dropdown menu Copy link Hide give me a ss of your base folder Vijay Vijay Vijay Follow Joined Oct 9, 2018 • Sep 15 '20 Dropdown menu Copy link Hide attached dev-to-uploads.s3.amazonaws.com/i/... 5hfT 5hfT 5hfT Follow Love to learn core & fundamental concepts, think & write code, accept challenges, solve real world problems with cutting edge technologies. Email mhshifat757@gmail.com Location Dhaka Education B.Sc in Software Engineering Work Associate Software Engineer at Dynamic Solution Innovators Ltd. Joined Dec 15, 2019 • Sep 15 '20 • Edited on Sep 15 • Edited Dropdown menu Copy link Hide did you change the task.json file try this as i have said that i make some edits. Collapse Expand Mahdi Hasan Mahdi Hasan Mahdi Hasan Follow Learner Joined Jun 28, 2022 • Jun 28 '22 • Edited on Jun 28 • Edited Dropdown menu Copy link Hide this modification in task.json is working with git bash "args": [ "cp", "'${file}'", "'${workspaceFolder}\\${fileBasename}'", "&&", "fileName=\"${fileBasename}\"", "&&", "objectFile=\"${fileName%.*}.out\"", "&&", "g++", "'${fileBasename}'", "-o", "${objectFile}", "&&", "./${objectFile}", "<", "input.txt", ">", "output.txt", "&&", "rm", "${objectFile}", "&&", "rm", "${fileBasename}", ] Enter fullscreen mode Exit fullscreen mode Collapse Expand Comment deleted Collapse Expand 5hfT 5hfT 5hfT Follow Love to learn core & fundamental concepts, think & write code, accept challenges, solve real world problems with cutting edge technologies. Email mhshifat757@gmail.com Location Dhaka Education B.Sc in Software Engineering Work Associate Software Engineer at Dynamic Solution Innovators Ltd. Joined Dec 15, 2019 • Jun 2 '20 Dropdown menu Copy link Hide What do u mean setup vim?? Collapse Expand soham04 soham04 soham04 Follow Joined Jul 25, 2020 • Jul 25 '20 Dropdown menu Copy link Hide Your .json file link is not working, I got my work stoped in between due to that !!! Collapse Expand 5hfT 5hfT 5hfT Follow Love to learn core & fundamental concepts, think & write code, accept challenges, solve real world problems with cutting edge technologies. Email mhshifat757@gmail.com Location Dhaka Education B.Sc in Software Engineering Work Associate Software Engineer at Dynamic Solution Innovators Ltd. Joined Dec 15, 2019 • Jul 25 '20 Dropdown menu Copy link Hide Did you use this one ? Collapse Expand soham04 soham04 soham04 Follow Joined Jul 25, 2020 • Jul 25 '20 Dropdown menu Copy link Hide these tasks.json will be only valid for this folder and its subfolder only ? 5hfT 5hfT 5hfT Follow Love to learn core & fundamental concepts, think & write code, accept challenges, solve real world problems with cutting edge technologies. Email mhshifat757@gmail.com Location Dhaka Education B.Sc in Software Engineering Work Associate Software Engineer at Dynamic Solution Innovators Ltd. Joined Dec 15, 2019 • Jul 25 '20 Dropdown menu Copy link Hide not like that. Let me see you this for different workspaces you have to make the tasks.json file once. Collapse Expand Eren Yaeger Eren Yaeger Eren Yaeger Follow Joined Jun 26, 2023 • Jun 26 '23 Dropdown menu Copy link Hide This is what I'm getting... Collapse Expand 5hfT 5hfT 5hfT Follow Love to learn core & fundamental concepts, think & write code, accept challenges, solve real world problems with cutting edge technologies. Email mhshifat757@gmail.com Location Dhaka Education B.Sc in Software Engineering Work Associate Software Engineer at Dynamic Solution Innovators Ltd. Joined Dec 15, 2019 • Jul 16 '23 Dropdown menu Copy link Hide what is your default shell in this vscode space ? Collapse Expand soham04 soham04 soham04 Follow Joined Jul 25, 2020 • Jul 25 '20 Dropdown menu Copy link Hide Will is save out code in github repo also ? Collapse Expand Virajas Mane Virajas Mane Virajas Mane Follow Joined Jun 11, 2020 • Jun 11 '20 Dropdown menu Copy link Hide It is showing hello.cpp : No such file or directory and also fatal error no input files can you please help?? Collapse Expand 5hfT 5hfT 5hfT Follow Love to learn core & fundamental concepts, think & write code, accept challenges, solve real world problems with cutting edge technologies. Email mhshifat757@gmail.com Location Dhaka Education B.Sc in Software Engineering Work Associate Software Engineer at Dynamic Solution Innovators Ltd. Joined Dec 15, 2019 • Jun 11 '20 Dropdown menu Copy link Hide did you create input.txt in the same directory as the hello.cpp?? Collapse Expand Amrita Kadam Amrita Kadam Amrita Kadam Follow Joined May 31, 2024 • May 31 '24 Dropdown menu Copy link Hide Yes thank you so much I just learned that I did not create a folder in the base folder and then the file.cpp. This worked. Collapse Expand saksham08jain saksham08jain saksham08jain Follow Joined Oct 26, 2022 • Oct 26 '22 Dropdown menu Copy link Hide I am getting this error,any help is greatly appreciated Collapse Expand Rooghz Rooghz Rooghz Follow C++ | React.Js | Node Work Software Engineer Trainee at GoodWork Labs Joined Dec 3, 2020 • Dec 30 '23 Dropdown menu Copy link Hide [ "cp", "\"${file}\"", "${workspaceFolder}\\jspwTest.cpp", "&&", "g++", "${workspaceFolder}\\jspwTest.cpp", "-o", "${workspaceFolder}\\jspwTest", "&&", "${workspaceFolder}\\jspwTest", "<", "input.txt", ">", "output.txt", "&&", "rm", "${workspaceFolder}\\jspwTest.exe", "&&", "rm", "${workspaceFolder}\\jspwTest.cpp" ] Enter fullscreen mode Exit fullscreen mode Try this it will work..You just have to mention where this 'jspwTest.exe/cpp' file will be present. Collapse Expand Eren Yaeger Eren Yaeger Eren Yaeger Follow Joined Jun 26, 2023 • Jun 26 '23 Dropdown menu Copy link Hide Please someone help me out as this is not working in my vscode Code of Conduct • Report abuse
Hey. Thanks for this nice guidelines. I'm getting below error. Can you please help ?
Recently i have added some changes for windows hope this will help. Please check this out
github.com/jspw/VS-Code-Config/iss...
Hmm. I moved the cpp file in there own folder as mentioned in the link. But still no luck :(
give me a ss of your base folder
attached
dev-to-uploads.s3.amazonaws.com/i/...
did you change the task.json file try this as i have said that i make some edits.
this modification in task.json is working with git bash
What do u mean setup vim??
Your .json file link is not working, I got my work stoped in between due to that !!!
Did you use this one ?
these tasks.json will be only valid for this folder and its subfolder only ?
not like that. Let me see you this
for different workspaces you have to make the tasks.json file once.
This is what I'm getting...
what is your default shell in this vscode space ?
Will is save out code in github repo also ?
It is showing hello.cpp : No such file or directory
and also fatal error no input files
can you please help??
did you create input.txt in the same directory as the hello.cpp??
Yes thank you so much I just learned that I did not create a folder in the base folder and then the file.cpp.
This worked.
I am getting this error,any help is greatly appreciated
Try this it will work..You just have to mention where this 'jspwTest.exe/cpp' file will be present.
Please someone help me out as this is not working in my vscode