Problem maximum
User jcoder12345
Submission Time 2025-06-18 19:36:02
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: ‘vector’ was not declared in this scope
6 | vector<int> vec;
| ^~~~~~
maximum.cpp:6:12: error: expected primary-expression before ‘int’
6 | vector<int> vec;
| ^~~
maximum.cpp:7:5: error: ‘vec’ was not declared in this scope