Problem card
User Memeathon
Submission Time 2025-02-20 16:42:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> t;
| ^~~
card.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <cmath>
+++ |+#include <iostream>
2 | using namespace std;
card.cpp:10:3: error: ‘cout’ was not declared in this scope
10 | cout << ans << endl;
| ^~~~
card.cpp:10:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
card.cpp:10:18: error: ‘endl’ was not declared in this scope
10 | cout << ans << endl;
| ^~~~
card.cpp:2:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
1 | #include <cmath>
+++ |+#include <ostream>
2 | using namespace std;