Borderou de evaluare (job #2704433)

Utilizator PopescuAndreiAlexandruPopescu Andrei Alexandru PopescuAndreiAlexandru Data 10 februarie 2021 16:33:06
Problema Subsecvente2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:1: error: 'include' does not name a type include <bits/stdc++.h> ^~~~~~~ main.cpp:5:1: error: 'ifstream' does not name a type ifstream fin("subsecvente2.in"); ^~~~~~~~ main.cpp:6:1: error: 'ofstream' does not name a type ofstream fout("subsecvente2.out"); ^~~~~~~~ main.cpp:12:1: error: 'string' does not name a type string str; ^~~~~~ main.cpp:22:25: error: 'string' has not been declared void AddWord(Trie *key, string& str, int l, int r, int index, int h) ^~~~~~ main.cpp: In function 'void AddWord(Trie*, int&, int, int, int, int)': main.cpp:36:24: error: invalid types 'int[int]' for array subscript int nextChr = str[l] - 'a'; ^ main.cpp:37:31: error: 'NULL' was not declared in this scope if (key->next[nextChr] == NULL) ^~~~ main.cpp: In function 'int main()': main.cpp:44:5: error: 'fin' was not declared in this scope fin >> n; ^~~ main.cpp:47:20: error: 'str' was not declared in this scope fin >> str; ^~~ main.cpp:49:68: error: 'min' was not declared in this scope AddWord(root, str, j, min(j + K - 1, str.size() - 1), i, 0); ^ main.cpp:51:5: error: 'fout' was not declared in this scope fout << ans << '\n'; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?