Problem typoswap
User YYC
Submission Time 2025-06-16 14:42:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typoswap.cpp: In function ‘int main()’:
typoswap.cpp:2:10: error: ‘string’ is not a member of ‘std’
2 | std::string A, B;
| ^~~~~~
typoswap.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 | int main() {
typoswap.cpp:4:10: error: ‘cin’ is not a member of ‘std’
4 | std::cin >> A >> B;
| ^~~
typoswap.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main() {
typoswap.cpp:4:17: error: ‘A’ was not declared in this scope
4 | std::cin >> A >> B;
| ^
typoswap.cpp:4:22: error: ‘B’ was not declared in this scope
4 | std::cin >> A >> B;
| ^
typoswap.cpp:6:10: error: ‘cout’ is not a membe