Borderou de evaluare (job #718595)

Utilizator avatar ecaterina Ecaterina Stefanescu ecaterina IP ascuns
Problemă Dictionar Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 10 mai 2023 11:26:32 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void add()': main.cpp:42:9: warning: variable 'i' set but not used [-Wunused-but-set-variable] 42 | int i, j; | ^ main.cpp: In function 'void traduce()': main.cpp:70:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 70 | while (i < hashcuvid[hash].size() && strcmp(cuv, dictionar[hashcuvid[hash][i]].key)) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:65:15: warning: unused variable 'ok' [-Wunused-variable] 65 | int hash, ok; | ^~ main.cpp:66:12: warning: unused variable 'rez' [-Wunused-variable] 66 | int i, rez; | ^~~ main.cpp: In function 'int main()': main.cpp:82:9: warning: unused variable 'nr' [-Wunused-variable] 82 | int nr, i, n, nrcuv, cuvnr, nrc, nrt, j, rez; | ^~ main.cpp:82:38: warning: unused variable 'nrt' [-Wunused-variable] 82 | int nr, i, n, nrcuv, cuvnr, nrc, nrt, j, rez; | ^~~ main.cpp:82:46: warning: unused variable 'rez' [-Wunused-variable] 82 | int nr, i, n, nrcuv, cuvnr, nrc, nrt, j, rez; | ^~~ main.cpp:101:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 101 | fscanf(fin, "%d", &n); | ~~~~~~^~~~~~~~~~~~~~~ main.cpp:107:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 107 | fscanf(fin, "%s%s", cuv, trad); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 1032 kb Bravo! 10
2 1 ms 1028 kb Bravo! 10
3 1 ms 1036 kb Bravo! 10
4 1 ms 1036 kb Bravo! 10
5 9 ms 1294 kb Bravo! 10
6 19 ms 1261 kb Bravo! 10
7 29 ms 1503 kb Bravo! 10
8 59 ms 1978 kb Bravo! 10
9 69 ms 1953 kb Bravo! 10
10 69 ms 1949 kb Bravo! 10
Punctaj total 100