Borderou de evaluare (job #2829681)
Utilizator | Data | 8 ianuarie 2022 20:53:21 | |
---|---|---|---|
Problema | Expresie2 | Status | done |
Runda | oji_clasa10_2019_2016..... | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int open(const char*&)':
main.cpp:48:3: error: 'vector' was not declared in this scope
48 | vector<int> data;
| ^~~~~~
main.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
3 | #include <algorithm>
+++ |+#include <vector>
4 | using namespace std;
main.cpp:48:10: error: expected primary-expression before 'int'
48 | vector<int> data;
| ^~~
main.cpp:54:20: error: 'data' was not declared in this scope
54 | return maxsq(data.begin(), data.end());
| ^~~~
main.cpp:59:12: error: 'data' was not declared in this scope
59 | sort(data.begin(), data.end());
| ^~~~
main.cpp:65:7: error: 'data' was not declared in this scope
65 | data.push_back(open(iter));
| ^~~~
main.cpp:69:7: error: 'data' was not declared in this scope
69 | data.push_back(parseInt(iter));
| ^~~~
main.cpp:76:14: error: 'data' was not declared in this scope
76 | return sum(data.begin(), data.end());
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !