Borderou de evaluare (job #3369156)
| Utilizator | Data | 17 octombrie 2026 14:48:25 | |
|---|---|---|---|
| Problema | Litere | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:14:9: error: conflicting declaration 'int f [26]'
14 | int n, f[26] = {0};
| ^
main.cpp:12:11: note: previous declaration as 'std::ifstream f'
12 | ifstream f("litere.in");
| ^
main.cpp:20:6: error: 'i' was not declared in this scope
20 | for(i = 0; i < n; i++){
| ^
main.cpp:23:11: error: 'j' was not declared in this scope
23 | for(j = x + 1; j < 26; j++)
| ^
main.cpp:26:7: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'long long int')
26 | f[x]++;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
