Borderou de evaluare (job #2810181)
Utilizator | Data | 28 noiembrie 2021 18:56:42 | |
---|---|---|---|
Problema | Calorifer | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:1: error: 'unordered_map' does not name a type
9 | unordered_map<int, int> last;
| ^~~~~~~~~~~~~
main.cpp:10:1: error: 'unordered_map' does not name a type
10 | unordered_map<int, int> fr;
| ^~~~~~~~~~~~~
main.cpp:11:1: error: 'unordered_map' does not name a type
11 | unordered_map<int, vector<int>> X;
| ^~~~~~~~~~~~~
main.cpp: In function 'void dfs(int)':
main.cpp:17:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (int i = 0; i<g[nod].size(); ++i) {
| ~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:34:43: error: 'fr' was not declared in this scope
34 | for (int i=1; i<=n; ++i) { cin>>a[i]; ++fr[a[i]]; if (fr[a[i]]==1) ++d; }
| ^~
main.cpp:43:7: error: 'X' was not declared in this scope
43 | X[aux/p].push_back(i);
| ^
main.cpp:54:11: error: 'last' was not declared in this scope
54 | if (last[aux/p] > 0) {
| ^~~~
main.cpp:59:23: error: 'X' was not declared in this scope
59 | for (int j=0; j<X[aux/p].size(); ++j)
| ^
main.cpp:63:5: error: 'last' was not declared in this scope
63 | last[a[i]] = i;
| ^~~~
main.cpp:82:24: error: 'fr' was not declared in this scope
82 | for (int j=1; j<=fr[a[st]]; ++j) cout<<a[st]<<" ";
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !