Sameko Dev C++ Wiki
Documentation from basics to advanced features.
Sameko Dev C++ is a C++ IDE designed for competitive programming and education. It comes with a pre-configured GCC 16 compiler, allowing you to start coding immediately without installing additional compilers or MinGW.
Who is Sameko for?
- Beginners who need a simple environment without the complexity of Visual Studio
- Competitive Programmers who need fast compilation and test case integration
- Students who need a portable IDE to use on school computers via USB
Comparison with other IDEs
| Feature | Sameko | VS Code | Dev-C++ 5.11 |
|---|---|---|---|
| Setup Time | 2 mins | 15+ mins | 5 mins |
| Portable | Yes | No | Yes |
| GCC Version | 16.0 | Manual | 4.x |
| Compile Speed | ~500ms | 2500ms+ | 1500ms |
Installing Sameko IDE
Installation takes about 3-5 minutes.
Which one should I choose?
Sameko provides 2 download options:
-
Installer (.exe) Recommended
- Automatic setup, adds shortcuts to Start Menu.
- Integrates with right-click menu (Open with Sameko).
- Includes uninstaller for clean removal.
-
Portable (.rar)
- Unzip and run immediately, no Admin rights required.
- Perfect for USB drives or public computers.
- Data is stored within the folder, keeping system registry clean.
- Note: Automatic updates are NOT supported in the portable version.
Download from GitHub
Visit the Releases page and download the appropriate version.
Install or Extract
If Installer: Run the .exe and follow instructions.
If Portable: Extract to a folder like D:\Sameko-IDE\.
Run Sameko.exe
Double-click Sameko.exe to launch the IDE.
Windows Defender may warn "not commonly downloaded". This is normal, click "Keep" to continue.
Creating your first project
After opening the IDE, try writing and running a Hello World program to verify installation.
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << "Toi yeu gai alime!" << '\n';
return 0;
}
Steps:
- Paste the code above into the editor
- Press Ctrl + S to save as
hello.cpp - Press F11 to compile and run
- The output will appear in the terminal below
Use F9 to compile only, F10 to run only, F11 for both.
System Requirements
| Component | Minimum | Recommended |
|---|---|---|
| OS | Windows 10 64-bit | Windows 11 |
| CPU | Intel Core i3 / AMD Ryzen 3 | Intel Core i5 / AMD Ryzen 5 or better |
| RAM | 4GB | 8GB+ |
| Disk Space | 1.5GB (free space) | 2GB+ |
Compiler Settings
Sameko uses GCC 16 with pre-configured compile options.
C++ Standard
Sameko fully supports C++ standards from legacy to modern.
| Standard | Description |
|---|---|
| C++98 | Legacy, rarely used today |
| C++11 / C++14 | Stable, widely used, supports auto, lambdas |
| C++17 | (Default) Gold standard for Competitive Programming |
| C++20 | Adds Ranges, Concepts, Modules |
| C++23 | Adds std::print, std::expected |
| C++26 | (Beta/Experimental) Latest features in development |
Common Compiler Flags
-O2- Optimize for speed, use when submitting to Codeforces-Wall- Show warnings, helps find bugs-g- Add debug information
Don't use -O2 when debugging as optimized code is harder to trace.
Keyboard Shortcuts
Shortcuts help you code faster.
| Shortcut | Action |
|---|---|
| F9 | Compile |
| F10 | Run |
| F11 | Compile & Run |
| Ctrl + N | New file |
| Ctrl + O | Open file |
| Ctrl + S | Save file |
| Ctrl + Shift + A | Format code (AStyle) |
| Ctrl + J | Toggle terminal |
| Ctrl + \ | Split editor |
Themes & Fonts
Sameko includes 6 built-in themes. Change themes in Settings or click the palette icon.
- Sameko Blue - Default theme with blue tones
- Sakura Pink - Light pink anime-style theme
- Dark Mode - Dark theme for night work
- Dracula - Popular purple theme
- Monokai - Classic programmer theme
- Nord - Arctic blue theme
The IDE also supports GIF backgrounds in Settings.
Competitive Companion
Competitive Companion is an extension that automatically fetches test cases from sites like Codeforces, AtCoder, LeetCode.
Setup
- Install Competitive Companion extension on Chrome/Firefox
- Open Sameko IDE
- Go to a problem page (e.g., Codeforces) and click the extension icon
- Test cases will be automatically added to the IDE
After parsing test cases, click Run All Tests to run all and see AC/WA/TLE results.
Snippets
Snippets help you type code templates faster. Sameko has built-in snippets and you can add your own.
Built-in Snippets
cp- Competitive programming template with bits/stdc++.hbfs- BFS templatedfs- DFS templatesegtree- Segment Treedsu- Disjoint Set Union
Type the prefix and press Tab or Enter to expand the snippet.
Adding custom snippets
Go to Settings > Snippets to open the snippet editor. Each snippet has a prefix (trigger) and body (code to expand).
Troubleshooting
IDE won't open
Right-click Sameko.exe, select Properties, check "Unblock" at the bottom, then Apply.
"Missing DLL" error
Install Visual C++ Redistributable from this link.
Compile doesn't work
Check the following:
- Path doesn't contain special characters or spaces
- Antivirus isn't blocking gcc.exe
- File is saved with .cpp extension
Terminal not showing output
Press Ctrl + J to toggle terminal panel. If still not visible, try restarting the IDE.
Create an issue on GitHub with a detailed description of your problem.