Borderou de evaluare (job #3125052)
Utilizator | Data | 1 mai 2023 16:28:54 | |
---|---|---|---|
Problema | Domenii | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:24: error: conflicting declaration 'int f [26]'
6 | int n,i,nr,poz[100001],f[26];
| ^
main.cpp:4:10: note: previous declaration as 'std::ifstream f'
4 | ifstream f("domenii.in");
| ^
main.cpp: In function 'int main()':
main.cpp:25:22: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
25 | cnt=f[j];
| ^
main.cpp:32:14: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
32 | f[s[i]-'a']++;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !