Borderou de evaluare (job #3296578)
Utilizator | Data | 14 mai 2025 06:27:14 | |
---|---|---|---|
Problema | Trie | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:21:20: error: 'k' was not declared in this scope
21 | cout<<(k?r:r-1)<<'\n';
| ^
main.cpp:25:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
25 | for(j=t[k].s;j&&(t[j].c!=w[i]||!t[j].p);j=t[j].b);
| ^~~
main.cpp:26:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
26 | cout<<(j?t[j].n:0)<<'\n';
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !