fork download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. int main() {
  5. char n[10];
  6. char x[20];
  7. x[0] = '\0';
  8. strcat(n,"\0");
  9. strcat(n,"0123456");
  10. strcat(n,x);
  11. strcat(n,x);
  12. cout << strlen(n);
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(2,0): error CS1024: Wrong preprocessor directive
prog.cs(3,0): error CS1024: Wrong preprocessor directive
prog.cs(3,7): error CS1041: Identifier expected: `namespace' is a keyword
prog.cs(3,20): error CS1003: Syntax error, `.' expected
prog.cs(5,7): error CS1518: Expected `class', `delegate', `enum', `interface', or `struct'
Compilation failed: 5 error(s), 0 warnings
stdout
Standard output is empty