Category : sublimetext3

I’ve been trying to run simple c++ program #include<iostream.h> void main(){ cout<<"helloworld"; } and the error I get is : In file included from d:mingwlibgccmingw32.3.0includec++bitspostypes.h:40:0, from d:mingwlibgccmingw32.3.0includec++iosfwd:40, from d:mingwlibgccmingw32.3.0includec++ios:38, from d:mingwlibgccmingw32.3.0includec++ostream:38, from d:mingwlibgccmingw32.3.0includec++iostream:39, from my.cpp:1: d:mingwlibgccmingw32.3.0includec++cwchar:44:19: fatal error: wchar.h: No such file or directory #include <wchar.h> ^ compilation terminated." anyone know how to fix it ..

Read more

Following is the error I am facing: The system cannot find the file specified. [Finished in 9.7s with exit code 1] [cmd: [‘g++.exe’, ‘-std=c++17’, ‘C:UsersD TawarDesktopCodenew.cpp’, ‘-o’, ‘new.exe’, ‘&&’, ‘new.exe<inputf.in>outputf.in’]] [dir: C:UsersD TawarDesktopCode] [path: C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:MinGWbin;C:MinGWbin] Source: Windows Que..

Read more

I am using Sublime Text and my code looks like this: #include <iostream> using namespace std; int main(){ #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif int var; cin>>var; for(int i=1; i<=10; i++){ cout<<var * i<<endl; } return 0; } When I run the code I get the error: undefined reference to std::cin’` which ..

Read more

While setting up my Sublime text 3 to use C++ 14 by default, I found 2 pieces of code to be used as a build system. { "cmd": ["g++.exe","-std=c++14", "${file}", "-o", "${file_base_name}.exe", "&&" , "${file_base_name}.exe<inputf.in>outputf.in"], "shell":true, "working_dir":"$file_path", "selector":"source.cpp" } and { "cmd":["bash", "-c", "g++ -std=c++14 -Wall ‘${file}’ -o ‘${file_path}/${file_base_name}’ && ‘${file_path}/${file_base_name}’"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": ..

Read more