| Problem | colosseumbattle |
|---|---|
| User | chairta |
| Submission Time | 2026-06-25 09:50:47 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
colosseumbattle.cpp: In function ‘int main()’:
colosseumbattle.cpp:2:9: error: ‘cin’ was not declared in this scope
2 | int n; cin >> n;
| ^~~
colosseumbattle.cpp:5:2: error: ‘vector’ was not declared in this scope
5 | vector<int> o(4);
| ^~~~~~
colosseumbattle.cpp:5:9: error: expected primary-expression before ‘int’
5 | vector<int> o(4);
| ^~~
colosseumbattle.cpp:6:9: error: expected primary-expression before ‘int’
6 | vector<int> a(n);
| ^~~
colosseumbattle.cpp:8:10: error: ‘a’ was not declared in this scope
8 | cin >> a[i];
| ^
colosseumbattle.cpp:11:11: error: ‘a’ was not declared in this scope
11 | first = a[i];
| ^
colosseumbattle.cpp:18:16: error: ‘abs’ was not declared in this scope
18 | s = min(s,abs(first-second));
| ^~~
colosseumbattle.cpp:18: