Problem | competition |
---|---|
User | JonathanChow |
Submission Time | 2025-02-08 17:33:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
competition.cpp:3:6: error: ‘cin’ in namespace ‘std’ does not name a type
3 | std::cin >> n >> a >> b;
| ^~~
competition.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int n, a, b;
competition.cpp:5:6: error: ‘vector’ in namespace ‘std’ does not name a template type
5 | std::vector<int> A(n);
| ^~~~~~
competition.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | int n, a, b;
competition.cpp:6:1: error: expected unqualified-id before ‘for’
6 | for (int i = 0; i < n; ++i) {
| ^~~
competition.cpp:6:17: error: ‘i’ does not name a type
6 | for (int i = 0; i < n; ++i) {
| ^
competition.cpp:6:24: error: expected unqualified-id before ‘++