fork download
  1. #include <stdio.h>
  2.  
  3.  
  4.  
  5. using namespace System;
  6.  
  7.  
  8. ref class trainee {};
  9.  
  10. int main()
  11.  
  12. {
  13. trainee ^Trainee = gcnew trainee;
  14. printf("***************");
  15. return 0;
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:17: error: 'System' is not a namespace-name
 using namespace System;  
                 ^
prog.cpp:5:23: error: expected namespace-name before ';' token
 using namespace System;  
                       ^
prog.cpp:8:1: error: 'ref' does not name a type
 ref class trainee {};
 ^
prog.cpp: In function 'int main()':
prog.cpp:13:2: error: 'trainee' was not declared in this scope
  trainee ^Trainee = gcnew trainee;
  ^
prog.cpp:13:11: error: 'Trainee' was not declared in this scope
  trainee ^Trainee = gcnew trainee;
           ^
prog.cpp:13:21: error: 'gcnew' was not declared in this scope
  trainee ^Trainee = gcnew trainee;
                     ^
stdout
Standard output is empty