Borderou de evaluare (job #1782876)

Utilizator sergiunascaSergiu Nasca sergiunasca Data 18 octombrie 2016 16:50:10
Problema Interesant Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 42

Raport evaluator

Compilare: user.cpp: In function ‘bool verify(std::string, std::string)’: user.cpp:39:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < a.length(); ++i) ^ user.cpp:45:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pozb == b.length()) ^ user.cpp: In function ‘int main(int, const char**)’: user.cpp:85:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i < a.size(); ++i) ^ user.cpp:88:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < sol.size(); ++j) ^ user.cpp:102:35: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::vector<std::pair<std::basic_string<char>, int> >::size_type {aka unsigned int}’ [-Wformat=] printf("%lu\n", sol.size()); ^ user.cpp:105:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < sol.size(); ++i) ^ user.cpp:55:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interesant.in", "r", stdin); ^ user.cpp:56:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interesant.out", "w", stdout); ^ user.cpp:60:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &c, &n); ^ user.cpp:65:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", str); ^ user.cpp:77:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", str); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms784kbIncorect.00
24ms1048kbIncorect.0
30ms488kbIncorect.0
40ms568kbIncorect.0
50ms508kbOK.33
640ms764kbNumar de siruri incorect.00
70ms508kbOK.33
892ms812kbOK.33
9704ms2068kbOK.44
10276ms940kbNumar de siruri incorect.00
11532ms1876kbOK.44
12304ms1420kbNumar de siruri incorect.00
13324ms1460kbOK.44
14252ms1312kbOK.55
15300ms1312kbOK.55
16464ms1332kbOK.55
17408ms1312kbNumar de siruri incorect.00
18376ms1944kbNumar de siruri incorect.00
19400ms1840kbNumar de siruri incorect.00
20684ms1840kbNumar de siruri incorect.00
21680ms1868kbNumar de siruri incorect.00
22548ms1928kbOK.66
Punctaj total42

Ceva nu functioneaza?