| Problem | typoswap |
|---|---|
| User | tjy9 |
| Submission Time | 2026-06-30 14:56:28 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
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:3:10: error: ‘cin’ is not a member of ‘std’
3 | 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:3:17: error: ‘a’ was not declared in this scope
3 | std::cin >> a >> b;
| ^
typoswap.cpp:3:22: error: ‘b’ was not declared in this scope
3 | std::cin >> a >> b;
| ^
typoswap.cpp:4:10: error: ‘cout’ is not a member