Fix C++ execution: remove duplicate helpers, use namespace std, fix Solution method calls
Mahdi Naser Moghadasi
9a2c618
Fix C++ code execution: add proper includes, fix function extraction, and Solution class method calls
Mahdi Naser Moghadasi
2f7e139
- Add necessary C++ headers (vector, iostream, unordered_map) to template
- Fix function name extraction for C++ class methods
- Update test code generation to create Solution instance and call method
- Fix JSON conversion helpers for C++ vectors and ints
- Use 'using namespace std' for cleaner code
Add multi-language support (Python, JavaScript, Java, C++)
Mahdi Naser Moghadasi
fe2a1b2
- Add language selector dropdown to CodeEditor
- Create execution API endpoints for JavaScript, Java, and C++
- Update Dockerfile to install Java (openjdk17) and C++ (g++) compilers
- Update code execution logic to route based on selected language
- Add syntax highlighting for all supported languages in Monaco and CodeMirror
- Update executeAndCheckWithLLM to support all languages
- Extract function names based on language syntax
- Update handleRun and handleSubmit to use language-aware execution