Problem ny_mathexam
User mandy
Submission Time 2024-07-25 14:56:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ny_mathexam.cpp: In function ‘int main()’:
ny_mathexam.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> r;
| ^~~
ny_mathexam.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
ny_mathexam.cpp:7:2: error: ‘cout’ was not declared in this scope
7 | cout << a;
| ^~~~
ny_mathexam.cpp:7:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?