Borderou de evaluare (job #2881675)
Utilizator | Data | 30 martie 2022 18:41:13 | |
---|---|---|---|
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:49:9: error: invalid operands of types 'FILE*' and 'int' to binary 'operator>>'
49 | fin >> n >> m;
| ~~~ ^~ ~
| | |
| FILE* int
main.cpp:52:13: error: invalid operands of types 'FILE*' and 'int' to binary 'operator>>'
52 | fin >> x >> y;
| ~~~ ^~ ~
| | |
| FILE* int
main.cpp:53:9: error: 'v' was not declared in this scope
53 | v[x].push_back (y);
| ^
main.cpp:59:14: error: 'v' was not declared in this scope
59 | sort(v[i].begin(), v[i].end());
| ^
main.cpp:59:9: error: 'sort' was not declared in this scope; did you mean 'qsort'?
59 | sort(v[i].begin(), v[i].end());
| ^~~~
| qsort
main.cpp:69:20: error: 'v' was not declared in this scope
69 | while (i < v[x].size() && j < v[y].size())
| ^
main.cpp:90:25: error: 'v' was not declared in this scope
90 | 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 !