Problem platonic12
User estkn
Submission Time 2026-05-22 14:52:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic12.cpp: In function ‘int main()’:
platonic12.cpp:6:5: error: ‘vector’ was not declared in this scope
6 | vector<int> b(a);
| ^~~~~~
platonic12.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
platonic12.cpp:6:12: error: expected primary-expression before ‘int’
6 | vector<int> b(a);
| ^~~
platonic12.cpp:8:16: error: ‘b’ was not declared in this scope
8 | cin >> b[i];
| ^
platonic12.cpp:10:16: error: ‘b’ was not declared in this scope
10 | cout << (b(b+1))/2
| ^
platonic12.cpp:10:14: error: ‘b’ was not declared in this scope
10 | cout << (b(b+1))/2
| ^