Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ is unstable in piston api. #676

Open
SharkFishDeveloper opened this issue Jul 8, 2024 · 2 comments
Open

C++ is unstable in piston api. #676

SharkFishDeveloper opened this issue Jul 8, 2024 · 2 comments

Comments

@SharkFishDeveloper
Copy link

Around 70% of the time, it shows SIGKILL error . Can someone fix it

@Brikaa
Copy link
Member

Brikaa commented Jul 8, 2024

Can you show the code that is causing this?

@SharkFishDeveloper
Copy link
Author

{
language: 'cpp',
version: '10.2.0',
files: [
{
name: 'index.g++',
content: '\r\n' +
' #include \r\n' +
' using namespace std;\r\n' +
'\r\n' +
' int add (int num1, int num2) {\r\n' +
' // Your code\r\n' +
' return num1+num2;\r\n' +
'}\r\n' +
'\r\n' +
' int main() {\r\n' +
' \r\n' +
' \r\n' +
' int a1 = add(1,3);\r\n' +
' cout<< a1<<endl;\r\n' +
' \r\n' +
' \r\n' +
' int a2 = add(4,5);\r\n' +
' cout<< a2<<endl;\r\n' +
' return 0;\r\n' +
' }\r\n' +
' \r\n' +
' '
}
],
stdin: '',
args: [],
compile_timeout: 10000,
run_timeout: 3000,
compile_memory_limit: -1,
run_memory_limit: -1
}
{
compile: { stdout: '', stderr: '', code: null, signal: 'SIGKILL', output: '' },
run: { stdout: '', stderr: '', code: null, signal: 'SIGKILL', output: '' },
language: 'c++',
version: '10.2.0'
}

I ran very simple Codes like this one , it sometimes runs sometimes doesn't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants