fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int G;
  6. cin>>G;
  7. char (G) [I]={'1'};
  8. char (G) [V]={'5'};
  9. char (G) [X]={"10"};
  10. char (G) [L]={"50"};
  11. char (G) [C]={"100"};
  12. char (G) [D]={"500"};
  13. char (G) [M]={"1000"};
  14. return 0;
  15. }
  16.  
Compilation error #stdin compilation error #stdout 0s 15240KB
stdin
I
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:11: error: ‘I’ was not declared in this scope
 char (G) [I]={'1'};
           ^
prog.cpp:8:11: error: ‘V’ was not declared in this scope
 char (G) [V]={'5'};
           ^
prog.cpp:9:11: error: ‘X’ was not declared in this scope
 char (G) [X]={"10"};
           ^
prog.cpp:10:11: error: ‘L’ was not declared in this scope
 char (G) [L]={"50"};
           ^
prog.cpp:11:11: error: ‘C’ was not declared in this scope
 char (G) [C]={"100"};
           ^
prog.cpp:12:11: error: ‘D’ was not declared in this scope
 char (G) [D]={"500"};
           ^
prog.cpp:13:11: error: ‘M’ was not declared in this scope
 char (G) [M]={"1000"};
           ^
stdout
Standard output is empty