fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char abc[];
  7. cin >> abc;
  8. cout << sizeof(abc);
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
abcd
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:11: error: storage size of ‘abc’ isn’t known
  char abc[];
           ^
stdout
Standard output is empty