+ 3

Can i run any C program in sololearn ?

i m trying to code my C program in sololearn but it is showing some errors but when i checked my program it was totally correct.. so is there is any problem with the compilation part of sololearn or it doesn't support C ? i think the later option will not be the case ...!!!! so can anyone tell me where is the problem...!!

11th Jun 2017, 6:54 PM
Itz_me_sandy_
Itz_me_sandy_ - avatar
28 Answers
12th Jun 2017, 5:43 AM
Kailash Loncha
Kailash Loncha - avatar
+ 6
You can even code ASM on SL's C++ playground. Just found that out.
11th Jun 2017, 6:57 PM
Karl T.
Karl T. - avatar
+ 6
@Rohit, assembly language.
11th Jun 2017, 7:01 PM
Karl T.
Karl T. - avatar
+ 6
You can do ARM through Termux (it's pretty easy with the 'ThinkInGeek' page linked in this discussion) https://www.sololearn.com/Discuss/442786/?ref=app Around this time I posted a CP assembly test with some explanation, but only two instructions. There are more/better examples in code search.
12th Jun 2017, 1:49 AM
Kirk Schafer
Kirk Schafer - avatar
+ 6
Thanks, @Kirk.
12th Jun 2017, 1:53 AM
Karl T.
Karl T. - avatar
+ 5
Like @Limitless said...can you add a link to CodePlayground for the problem code?
11th Jun 2017, 8:10 PM
Kirk Schafer
Kirk Schafer - avatar
+ 5
Yeah Manual...didn't know it worked on GCC too.
11th Jun 2017, 10:55 PM
Karl T.
Karl T. - avatar
+ 4
Note that VS 2017 does not support inline assembly for ARM and x64 (64 bits cpu).
11th Jun 2017, 11:01 PM
Karl T.
Karl T. - avatar
+ 4
Compile what, @Manual
12th Jun 2017, 1:40 AM
Karl T.
Karl T. - avatar
+ 4
I found code to compile a basic assembly hello world output through C.
12th Jun 2017, 1:41 AM
Manual
Manual - avatar
+ 4
@Deepak What did you try doing? Did you use pure assembly in the C++ compiler?
12th Jun 2017, 4:16 AM
Manual
Manual - avatar
+ 4
@Deepak That will not work. Unless there was a header or library to define all the assembly functions, that your code would use.
12th Jun 2017, 4:27 AM
Manual
Manual - avatar
+ 3
i am trying it in C++ also but there is the same result ....!!!! ERRORS ERRORS everywhere.... @RohitKumar
11th Jun 2017, 6:58 PM
Itz_me_sandy_
Itz_me_sandy_ - avatar
+ 3
@Karl T. I got it to compile in VS I copied the final code from http://rodrigosavage.blogspot.ca/2010/07/hello-world-with-inline-asm.html?m=1
12th Jun 2017, 1:37 AM
Manual
Manual - avatar
+ 3
@Kirk Thank you, for sharing the thread.
12th Jun 2017, 1:58 AM
Manual
Manual - avatar
+ 3
@Deepak It did not work on sololearn, when I tried it. I tried compiling my moded copy on SL, and got errors that I could not solve. I compiled for me in visual studio.
12th Jun 2017, 4:13 AM
Manual
Manual - avatar
+ 3
This works with SoloLearn's gcc: https://gcc.gnu.org/onlinedocs/gcc/Basic-Asm.html#Basic-Asm https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html Quote..."GCC does not parse the assembler instructions themselves and does not know what they mean or even whether they are valid assembler input." (it passes through) Here's GNUC version, just for environment: https://code.sololearn.com/cu8tmoP4h80H/?ref=app
12th Jun 2017, 4:31 AM
Kirk Schafer
Kirk Schafer - avatar
+ 2
Tag the code to this post
11th Jun 2017, 6:59 PM
Limitless
Limitless - avatar
+ 2
Yes you can, press +Insert under your answer's text box, then "Insert code"
11th Jun 2017, 8:20 PM
Limitless
Limitless - avatar
+ 2
Only if you know C++ well enough, to use C libraries.
11th Jun 2017, 9:10 PM
Manual
Manual - avatar