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

Compile Error

typoswap.cpp: In function ‘int main()’:
typoswap.cpp:6:16: error: expected initializer before ‘==’ token
6 | int firstName=="";
| ^~
typoswap.cpp:7:15: error: expected initializer before ‘==’ token
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;
| ^~~