Problem | typoswap |
---|---|
User | JJYZZ |
Submission Time | 2024-06-21 13:58:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
typoswap.cpp: In function ‘int main()’:
typoswap.cpp:6:16: error: expected initializer before string constant
6 | int firstName"";
| ^~
typoswap.cpp:7:15: error: expected initializer before string constant
7 | int lastName"";
| ^~
typoswap.cpp:9:10: error: ‘firstName’ was not declared in this scope
9 | cin >> firstName >> lastName;
| ^~~~~~~~~
typoswap.cpp:9:23: error: ‘lastName’ was not declared in this scope
9 | cin >> firstName >> lastName;
| ^~~~~~~~
typoswap.cpp:10:21: error: expected primary-expression before ‘int’
10 | string fullName = int lastName +" "+ int firstName;
| ^~~