Jatana / FastOlympicCoding

Tools for competitive programming for Sublime Text 3 & 4
390 stars 48 forks source link

cin not working for sublime text 4 #56

Closed Devashish-Bawa closed 2 years ago

Devashish-Bawa commented 2 years ago

image

as you can see in this file only 1 variable is taking input but it taking infinite inputs and not showing any inputs.

Devashish-Bawa commented 2 years ago

COUT is working, only if cout statement is there.

Jatana commented 2 years ago

Hi! Could you restart Sublime Text, press ctrl+~, and try to run the program again. Paste the log here.

Devashish-Bawa commented 2 years ago

image

This is showing in console, while running :- warning: mnemonic R not found in menu caption FastOlympicCoding warning: mnemonic R not found in menu caption FastOlympicCoding [FastOlympicCoding] session saved [FastOlympicCoding] process terminating error [FastOlympicCoding] session saved [FastOlympicCoding] process terminating error [FastOlympicCoding] session saved [FastOlympicCoding] process terminating error [FastOlympicCoding] session saved

Process terminating error is when I close that .run tab

Devashish-Bawa commented 2 years ago

@Jatana any solution ??

Jatana commented 2 years ago

What OS are you using?

Devashish-Bawa commented 2 years ago

Windows 10

Devashish-Bawa commented 2 years ago

@Jatana did u get any solution for this ?

Jatana commented 2 years ago

Create file main.py and paste code in it from here — https://gist.github.com/Jatana/0d3255a5c83aead04c05695a75ad52f0. Then run it from the console via python3 main.py. Paste the output here.

Devashish-Bawa commented 2 years ago

image

@Jatana i am getting error while using this command!!

Jatana commented 2 years ago

You should run it from the Window's console, not the Sublime's one. Or paste the following to the Sublime's console

import subprocess
subprocess.check_output('python3 "D://CPP/CF/mast.py"', shell=True)
Devashish-Bawa commented 2 years ago

@Jatana This is windows console output (in windows cmd) image

@Jatana this is sublime's console output:- image

Jatana commented 2 years ago

Paste this https://gist.github.com/Jatana/476b9a0260e454b47c76f3cc25969f08 to main.py, and run it from the Window's console.

Jatana commented 2 years ago

Also, paste this https://gist.github.com/Jatana/23d32476d32c03bfd211ee2c0023a7e9 to main.py, and run it from the Window's console. Attach the screenshot of the result.

Devashish-Bawa commented 2 years ago

Paste this https://gist.github.com/Jatana/476b9a0260e454b47c76f3cc25969f08 to main.py, and run it from the Window's console.

image

@Jatana here is the screenshot

Devashish-Bawa commented 2 years ago

Also, paste this https://gist.github.com/Jatana/23d32476d32c03bfd211ee2c0023a7e9 to main.py, and run it from the Window's console. Attach the screenshot of the result.

image

@Jatana here is the screenshot of the second one

Devashish-Bawa commented 2 years ago

Leave it!! I have started using cp-editor its good! :) Thanks for all the help.