Borderou de evaluare (job #1480292)

Utilizator mirupetPetcan Miruna mirupet Data 2 septembrie 2015 13:51:39
Problema Ratina Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:48:64: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (j < min(v[i].x.length(), v[i + 1].x.length()) && v[i].x.at(j) == v[i + 1].x.at(j)) ^ user.cpp:7:26: warning: integer overflow in expression [-Woverflow] #define INF ((1 << 31) - 1) ^ user.cpp:72:29: note: in expansion of macro ‘INF’ start = minim = INF; ^ user.cpp:7:26: warning: integer overflow in expression [-Woverflow] #define INF ((1 << 31) - 1) ^ user.cpp:73:23: note: in expansion of macro ‘INF’ finish = -INF; ^ user.cpp:28:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratina.in","r",stdin); ^ user.cpp:29:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratina.out","w",stdout); ^ user.cpp:31:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &N, &M); ^ user.cpp:34:44: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(S), v[i].x = S, v[i].y = i; ^ user.cpp:70:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nr); ^ user.cpp:77:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &X); ^ /tmp/cciyRg2H.o: In function `main': user.cpp:(.text.startup+0x8a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms488kbKilled by signal 6(SIGABRT).0
20ms488kbKilled by signal 6(SIGABRT).0
320ms432kbOK5
420ms432kbOK5
520ms428kbOK5
620ms436kbOK5
7180ms512kbOK5
8180ms508kbOK5
9180ms504kbOK5
100ms488kbKilled by signal 6(SIGABRT).0
110ms488kbKilled by signal 6(SIGABRT).0
120ms488kbKilled by signal 6(SIGABRT).0
130ms492kbKilled by signal 6(SIGABRT).0
140ms492kbKilled by signal 6(SIGABRT).0
150ms488kbKilled by signal 6(SIGABRT).0
16176ms860kbOK5
17296ms852kbOK5
18296ms860kbOK5
19296ms852kbOK5
20296ms856kbOK5
Punctaj total60

Ceva nu functioneaza?