fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. const char tab[ 3][ 18 ] =
  7. {
  8. "xxxxxxxxxxxxxxxxxx",
  9. "x x",
  10. "x x",
  11. //...
  12. //... <- Tutaj definiujesz z x'ów rysunek
  13. //...
  14. }
  15.  
  16. //...
  17. for( int i = 0; i <= 3; i++ )
  18. {
  19. for( int j = 0; j <= 18; j++ )
  20. {
  21. cout << tab[ i ][ j ];
  22. }
  23. }
  24. //...
  25.  
  26. return 0;
  27. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:14: error: initializer-string for array of chars is too long
prog.cpp:14: error: initializer-string for array of chars is too long
prog.cpp:14: error: initializer-string for array of chars is too long
prog.cpp:17: error: expected ‘,’ or ‘;’ before ‘for’
prog.cpp:17: error: ‘i’ was not declared in this scope
prog.cpp:17: error: expected `;' before ‘)’ token
prog.cpp:6: warning: unused variable ‘tab’
prog.cpp:27: error: expected `}' at end of input
stdout
Standard output is empty