Borderou de evaluare (job #725208)

Utilizator avatar trofim_ion Trofim Ion trofim_ion IP ascuns
Problemă Dictionar Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 28 iun. 2023 23:38:35 Scor 50

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:22:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 22 | for(int i = 0 ; i <= input.length()+1; ++i){ | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:34:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 34 | if(a[i] == v[j].first) if(i == words-1) cout << v[j].second << "."; else cout << v[j].second << " "; | ^ main.cpp:7:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 7 | freopen("dictionar.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:8:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | freopen("dictionar.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 765 kb Bravo! 10
2 1 ms 765 kb Bravo! 10
3 1 ms 765 kb Bravo! 10
4 9 ms 761 kb Bravo! 10
5 79 ms 1220 kb Bravo! 10
6 159 ms 1331 kb Time limit exceeded 0
7 159 ms 1814 kb Time limit exceeded 0
8 159 ms 2461 kb Time limit exceeded 0
9 159 ms 2588 kb Time limit exceeded 0
10 159 ms 2592 kb Time limit exceeded 0
Punctaj total 50