Problem maximum
User jcoder12345
Submission Time 2025-06-18 19:33:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

maximum.cpp: In function ‘int main()’:
maximum.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> a >> b;
| ^~~
maximum.cpp:5:20: error: ‘greater’ was not declared in this scope
5 | sort(num,num+2,greater<int>());
| ^~~~~~~
maximum.cpp:5:28: error: expected primary-expression before ‘int’
5 | sort(num,num+2,greater<int>());
| ^~~
maximum.cpp:5:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
5 | sort(num,num+2,greater<int>());
| ^~~~
| short
maximum.cpp:6:5: error: ‘cout’ was not declared in this scope
6 | cout << num[0]
| ^~~~