Problem | weddingcoins |
---|---|
User | sergius |
Submission Time | 2024-06-20 10:18:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> a;
| ^~~
weddingcoins.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
weddingcoins.cpp:28:2: error: ‘cout’ was not declared in this scope
28 | cout << ans;
| ^~~~
weddingcoins.cpp:28:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?