Borderou de evaluare (job #3195916)
Utilizator | Data | 22 ianuarie 2024 09:18:17 | |
---|---|---|---|
Problema | Zapada | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: 'vector' does not name a type
7 | vector <int> L[100003];
| ^~~~~~
main.cpp: In function 'void dfs(int)':
main.cpp:13:10: error: 'L' was not declared in this scope
13 | sort(L[x].begin(),L[x].end(),[](int a,int b){ return L[a].size()>L[b].size();});
| ^
main.cpp: In lambda function:
main.cpp:13:58: error: 'L' is not captured
13 | sort(L[x].begin(),L[x].end(),[](int a,int b){ return L[a].size()>L[b].size();});
| ^
main.cpp:13:35: note: the lambda has no capture-default
13 | sort(L[x].begin(),L[x].end(),[](int a,int b){ return L[a].size()>L[b].size();});
| ^
main.cpp:13:10: note: '<typeprefixerror>L' declared here
13 | sort(L[x].begin(),L[x].end(),[](int a,int b){ return L[a].size()>L[b].size();});
| ^
main.cpp:13:70: error: 'L' is not captured
13 | sort(L[x].begin(),L[x].end(),[](int a,int b){ return L[a].size()>L[b].size();});
| ^
main.cpp:13:35: note: the lambda has no capture-default
13 | sort(L[x].begin(),L[x].end(),[](int a,int b){ return L[a].size()>L[b].size();});
| ^
main.cpp:13:10: note: '<typeprefixerror>L' declared here
13 | sort(L[x].begin(),L[x].end(),[](int a,int b){ return L[a].size()>L[b].size();});
| ^
main.cpp: In function 'int main()':
main.cpp:25:9: error: 'L' was not declared in this scope
25 | L[y].push_back(x);
| ^
main.cpp:30:12: error: 'L' was not declared in this scope
30 | if(L[i].size()>maxim)
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !