mavidser / SublimeInput

Send STDIN input to programs using comments in Sublime Text 2/3
37 stars 2 forks source link

Problem in taking input #17

Open MotiBaadror opened 7 years ago

MotiBaadror commented 7 years ago

i have just added sublime Input sublime package file into installed package folder and restarted sublime text and when i press ctrl+alt+b for this code

include

include <bits/stdc++.h>

using namespace std; int main() { string s; cin>>s; cout<<s; }

C:/Program Files (x86)/mingw-w64/i686-7.1.0-posix-dwarf-rt_v5-rev2/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.1.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot open output file C:\Users\Moti Baadror\Desktop\youtube\/tet1.exe: Permission denied collect2.exe: error: ld returned 1 exit status

mavidser commented 7 years ago

Can you share the config file you are using for SublimeInput?

MotiBaadror commented 7 years ago

i am using this file https://github.com/mavidser/SublimeInput/releases/download/3.1.1/Sublime.Input.sublime-package output:ECHO[Finished in 1.2s]

mavidser commented 7 years ago

I am not able to reproduce this problem. Can you post a sample program which gives this error, and any settings you might have configured in Preferences > SublimeInput > Settings ?

mavidser commented 7 years ago

I see that you're using minGW compiler, but your source uses bits/stdc++ header. Are you sure you've included this non-standard header?

Or you can change the compiler in Preferences > SublimeInput > Settings - User like here

MotiBaadror commented 7 years ago

include

include <bits/stdc++.h>

using namespace std;

/input hello / int main() { string s; cin>>s; cout<<s; return 0;

} configure file { "build_schemas" : { "cpp" : { "shell_cmd" : "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\"", "input_start" : "/input", "input_end" : "/" } } } i have added this at the path you have shown and it is saaved as name"sublimeInput.sublime-setting i didnt add that keymap config when i try to add preference-> package setting->sublimeInput->keybinding user abd after pasting this file there [ { {

MotiBaadror commented 7 years ago

[ { {