Borderou de evaluare (job #2789654)
Utilizator | Data | 27 octombrie 2021 19:34:38 | |
---|---|---|---|
Problema | Chernel | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: expected initializer before 'vector'
7 | vector<pair<int,int> > r;
| ^~~~~~
main.cpp:8:25: error: 'int f(int, int)' redeclared as different kind of entity
8 | inline int f(int n,int k)
| ^
main.cpp:5:27: note: previous declaration 'int f'
5 | int n,m,e,a,s,p[100005],i,f,x;
| ^
main.cpp: In function 'int main()':
main.cpp:25:13: error: 'r' was not declared in this scope
25 | r.push_back({i,e});
| ^
main.cpp:28:9: error: 'r' was not declared in this scope
28 | r.push_back({m,1});
| ^
main.cpp:30:9: error: 'o' was not declared in this scope
30 | o[i]=1;
| ^
main.cpp:31:16: error: 'r' was not declared in this scope
31 | for(auto t:r) {
| ^
main.cpp:35:17: error: 'o' was not declared in this scope
35 | if(!o[i])
| ^
main.cpp:39:17: error: 'o' was not declared in this scope
39 | o[i]=0;
| ^
main.cpp:43:12: error: 'o' was not declared in this scope
43 | if(o[i])
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !