Borderou de evaluare (job #2965486)
Utilizator | Data | 15 ianuarie 2023 13:53:01 | |
---|---|---|---|
Problema | Swap | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:30:5: error: 'vector' was not declared in this scope
30 | vector<int> fr(27, 0);
| ^~~~~~
main.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
3 | #include <deque>
+++ |+#include <vector>
4 | using namespace std;
main.cpp:30:12: error: expected primary-expression before 'int'
30 | vector<int> fr(27, 0);
| ^~~
main.cpp:33:9: error: 'fr' was not declared in this scope
33 | fr[ch - 'a'] ++;
| ^~
main.cpp:36:9: error: 'fr' was not declared in this scope
36 | fr[ch - 'a'] --;
| ^~
main.cpp:40:13: error: 'fr' was not declared in this scope
40 | if (fr[i] != 0)
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !