Problem maximum
User Zihan1304
Submission Time 2024-11-08 14:49:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

maximum.cpp:2:7: error: expected nested-name-specifier before ‘namepace’
2 | using namepace std;
| ^~~~~~~~
maximum.cpp: In function ‘int main()’:
maximum.cpp:5:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
5 | cout << max (a,b);
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from maximum.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
maximum.cpp:5:10: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
5 | cout << max (a,b);
| ^~~
| std::max
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from maximum.cpp:1:
/usr/include