Problem maximum
User wahjsodhowasd
Submission Time 2026-08-24 10:49:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

maximum.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include algorithm
| ^~~~~~~~~
maximum.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
2 | #include iostream
| ^~~~~~~~
maximum.cpp: In function ‘int main()’:
maximum.cpp:7:1: error: ‘cin’ was not declared in this scope
7 | cin>>a>>b;
| ^~~
maximum.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #include algorithm
maximum.cpp:8:1: error: ‘cout’ was not declared in this scope
8 | cout<<max(a,b);
| ^~~~
maximum.cpp:8:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
maximum.cpp:8:7: error: ‘max’ was not declared in this scope
8 | cout<<max(a,b);
| ^~~