0

Why it doesn't run in code playground? What means that error?

int Myspace Myspace = 14 - run - > error... why?

21st Jul 2018, 2:27 PM
Rose Loreles
Rose Loreles - avatar
8 Respuestas
+ 6
Next time use the plus icon to link your code to your question so we can see exactly what your issue is by running it. Good luck!
21st Jul 2018, 4:10 PM
John Wells
John Wells - avatar
+ 5
namespace SoloLearn { // You have Myspace declared here... class Program { // You can put it here like this: int Myspace = 14 ; static void Main(string[] args) { // Or put your assignment here with // declaration either here or above. } } }
21st Jul 2018, 4:04 PM
John Wells
John Wells - avatar
+ 1
There are no semi colons.
21st Jul 2018, 2:30 PM
Fumikage Tokoyami
Fumikage Tokoyami - avatar
+ 1
thanks!
21st Jul 2018, 4:06 PM
Rose Loreles
Rose Loreles - avatar
+ 1
Rose Loreles you have to have it inside the class or the main method
21st Jul 2018, 7:45 PM
hinanawi
hinanawi - avatar
0
Thank you!
21st Jul 2018, 2:30 PM
Rose Loreles
Rose Loreles - avatar
0
I tried. there still is an error
21st Jul 2018, 2:32 PM
Rose Loreles
Rose Loreles - avatar
0
A namespace cannot directly contain members such as fiels and methods. - error What it means?
21st Jul 2018, 2:37 PM
Rose Loreles
Rose Loreles - avatar