Borderou de evaluare (job #2977242)
Utilizator | Data | 11 februarie 2023 09:54:53 | |
---|---|---|---|
Problema | Stramosi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:1: error: expected initializer before 'int'
6 | int tata[250008][28],a,b,j;
| ^~~
main.cpp: In function 'int main()':
main.cpp:10:9: error: 'i' was not declared in this scope
10 | for(i=1;i<=n;i++)
| ^
main.cpp:12:14: error: 'tata' was not declared in this scope
12 | cin>>tata[i][0];
| ^~~~
main.cpp:14:9: error: 'j' was not declared in this scope
14 | for(j=1;(1<<j)<=n;j++)
| ^
main.cpp:16:13: error: 'i' was not declared in this scope
16 | for(i=(1<<j);i<=n;i++)
| ^
main.cpp:18:13: error: 'tata' was not declared in this scope
18 | tata[i][j]=tata[tata[i][j-1]][j-1];
| ^~~~
main.cpp:21:9: error: 'i' was not declared in this scope
21 | for(i=1;i<=m;i++)
| ^
main.cpp:23:14: error: 'a' was not declared in this scope
23 | cin>>a>>b;
| ^
main.cpp:23:17: error: 'b' was not declared in this scope
23 | cin>>a>>b;
| ^
main.cpp:26:15: error: 'tata' was not declared in this scope
26 | a=tata[a][(int)(log2((b&-b)))];
| ^~~~
main.cpp:26:29: error: 'log2' was not declared in this scope
26 | a=tata[a][(int)(log2((b&-b)))];
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !