Borderou de evaluare (job #604900)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Criptare (clasa a 10-a) | Compilator | cpp-32 |
Rundă | simulare10 | Status | evaluat |
Dată | 28 aug. 2021 14:51:19 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:8: error: conflicting declaration 'int f [35]'
10 | int n, f[SIGMA+5], ind;
| ^
main.cpp:5:10: note: previous declaration as 'std::ifstream f'
5 | ifstream f("criptare.in");
| ^
main.cpp: In function 'int main()':
main.cpp:32:14: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
32 | f[dif]++;
| ^
main.cpp:40:32: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
40 | g << res[i] << " " << f[abs(k[0]-res[i][0])] << "\n";
| ^