Problem maximum
User ZheKai
Submission Time 2025-03-01 09:29:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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