Run id: 145478

Main.cc:1:1: error: 'string' does not name a type
 string password;
 ^
Main.cc:2:5: error: 'cin' does not name a type
     cin >> password;
     ^
Main.cc:5:18: error: 'password' was not declared in this scope
     char first = password[0] - '0' + 'A';
                  ^
Main.cc:8:24: error: 'password' was not declared in this scope
     int second_digit = password[1] - '0';
                        ^
Main.cc:10:5: error: expected unqualified-id before 'if'
     if (second_digit % 2 == 0) {
     ^
Main.cc:12:7: error: expected unqualified-id before 'else'
     } else {
       ^
Main.cc:17:28: error: 'password' was not declared in this scope
     int sum_first_three = (password[0] - '0') + (password[1] - '0') + (password[2] - '0');
                            ^
Main.cc:17:50: error: 'password' was not declared in this scope
     int sum_first_three = (password[0] - '0') + (password[1] - '0') + (password[2] - '0');
                                                  ^
Main.cc:17:72: error: 'password' was not declared in this scope
     int sum_first_three = (password[0] - '0') + (password[1] - '0') + (password[2] - '0');
                                                                        ^
Main.cc:21:19: error: 'password' was not declared in this scope
     char fourth = password[3];
                   ^
Main.cc:25:23: error: 'password' was not declared in this scope
     int fifth_digit = password[4] - '0';
                       ^
Main.cc:31:5: error: expected unqualified-id before 'for'
     for (int i = 0; i < 6; i++) {
     ^
Main.cc:31:21: error: 'i' does not name a type
     for (int i = 0; i < 6; i++) {
                     ^
Main.cc:31:28: error: 'i' does not name a type
     for (int i = 0; i < 6; i++) {
                            ^
Main.cc:36:5: error: 'cout' does not name a type
     cout << first << second << third << fourth << fifth_char << sixth << endl;
     ^