Problem typoswap
User JJYZZ
Submission Time 2024-06-21 13:57:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typoswap.cpp: In function ‘int main()’:
typoswap.cpp:6:18: error: expected initializer before string constant
6 | string firstName"";
| ^~
typoswap.cpp:7:17: error: expected initializer before string constant
7 | string 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;
| ^~~~~~~~