Borderou de evaluare (job #3327050)
| Utilizator | Data | 2 decembrie 2025 00:48:21 | |
|---|---|---|---|
| Problema | Domenii | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:29:5: error: conflicting declaration 'int f [26]'
29 | int f[26];
| ^
main.cpp:24:10: note: previous declaration as 'std::ifstream f'
24 | ifstream f(file_in);
| ^
main.cpp: In function 'int main()':
main.cpp:47:22: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
47 | ans+=tt+f[s[i]-'a'];
| ^
main.cpp:48:14: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
48 | f[s[i]-'a']+=cnt;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
