Borderou de evaluare (job #2799162)
Utilizator | Data | 12 noiembrie 2021 16:19:04 | |
---|---|---|---|
Problema | Retele | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:30: error: conflicting declaration 'int x'
8 | int z,w[X],x[X],q,d,r[X],N,M,x,y,i;
| ^
main.cpp:8:12: note: previous declaration as 'int x [50000]'
8 | int z,w[X],x[X],q,d,r[X],N,M,x,y,i;
| ^
main.cpp: In function 'void C(int&)':
main.cpp:32:30: error: expected ';' before ')' token
32 | for(;l[z]>='0'&&l[z]<='9') {
| ^
| ;
main.cpp: In function 'int main()':
main.cpp:41:5: error: invalid conversion from 'int*' to 'int' [-fpermissive]
41 | C(x),C(y),--x,--y,G[x].push_back(y);
| ^
| |
| int*
main.cpp:27:20: note: initializing argument 1 of 'void C(int&)'
27 | inline void C(int &x)
| ~~~~~^
main.cpp:41:5: error: cannot bind rvalue '(int)((int*)(& x))' to 'int&'
41 | C(x),C(y),--x,--y,G[x].push_back(y);
| ^
main.cpp:41:15: error: lvalue required as decrement operand
41 | C(x),C(y),--x,--y,G[x].push_back(y);
| ^
main.cpp:41:22: error: invalid types 'std::vector<int> [50000][int [50000]]' for array subscript
41 | C(x),C(y),--x,--y,G[x].push_back(y);
| ^
main.cpp:47:6: error: 'fout' was not declared in this scope
47 | for(fout<<q<<'\n',i=0;i<N;++i)
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !