Borderou de evaluare (job #1788759)

Utilizator sergiunascaSergiu Nasca sergiunasca Data 26 octombrie 2016 13:44:02
Problema Politic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main(int, const char**)’: user.cpp:34:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i < a.size(); ++i) ^ user.cpp:48:33: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::vector<int>::size_type {aka unsigned int}’ [-Wformat=] printf("%lu\n", b.size() - 1); ^ user.cpp:52:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(front <= b.size()) ^ user.cpp:54:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(front == b.size() - 1) ^ user.cpp:72:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(front == b.size() - 1) ^ user.cpp:20:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("politic.in", "r", stdin); ^ user.cpp:21:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("politic.out", "w", stdout); ^ user.cpp:23:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:26:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms436kbNumar de variante gresit3
20ms436kbNumar de variante gresit3
30ms436kbNumar de variante gresit3
40ms444kbNumar de variante gresit3
54ms568kbNumar de variante gresit3
64ms568kbNumar de variante gresit3
74ms612kbNumar de variante gresit3
84ms564kbNumar de variante gresit3
94ms612kbNumar de variante gresit3
104ms564kbNumar de variante gresit3
Punctaj total30

Ceva nu functioneaza?