Problem | ihate1111 |
---|---|
User | jerrielchangjiebin |
Submission Time | 2024-12-04 11:44:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ihate1111.cpp: In function ‘int main()’:
ihate1111.cpp:19:5: error: ‘vector’ was not declared in this scope
19 | vector <int> testc(t);
| ^~~~~~
ihate1111.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 |
ihate1111.cpp:19:13: error: expected primary-expression before ‘int’
19 | vector <int> testc(t);
| ^~~
ihate1111.cpp:21:8: error: ‘testc’ was not declared in this scope
21 | cin>>testc[i];
| ^~~~~
ihate1111.cpp:23:19: error: found ‘:’ in nested-name-specifier, expected ‘::’
23 | while (int te : testc) {
| ^
| ::
ihate1111.cpp:23:16: error: ‘te’ has not been declared
23 | while (int te : testc) {
| ^~
ihate1111.cpp:23:26: error: q