Borderou de evaluare (job #2881677)
Utilizator | Data | 30 martie 2022 18:41:41 | |
---|---|---|---|
Problema | Color | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:14: error: variable 'std::ofstream fout' has initializer but incomplete type
8 | ofstream fout("color.out");
| ^
main.cpp: In function 'int main()':
main.cpp:43:5: error: 'vector' was not declared in this scope
43 | vector <int> v[4001];
| ^~~~~~
main.cpp:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
4 | #include <cstdlib>
+++ |+#include <vector>
5 | using namespace std;
main.cpp:43:13: error: expected primary-expression before 'int'
43 | vector <int> v[4001];
| ^~~
main.cpp:55:9: error: 'v' was not declared in this scope
55 | v[x].push_back (y);
| ^
main.cpp:61:14: error: 'v' was not declared in this scope
61 | sort(v[i].begin(), v[i].end());
| ^
main.cpp:61:9: error: 'sort' was not declared in this scope; did you mean 'qsort'?
61 | sort(v[i].begin(), v[i].end());
| ^~~~
| qsort
main.cpp:71:20: error: 'v' was not declared in this scope
71 | while (i < v[x].size() && j < v[y].size())
| ^
main.cpp:92:25: error: 'v' was not declared in this scope
92 | nrtot = nrtot + v[x].size() - i;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !