Borderou de evaluare (job #1480312)

Utilizator mirupetPetcan Miruna mirupet Data 2 septembrie 2015 14:20:02
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:49: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:9:26: warning: integer overflow in expression [-Woverflow] #define INF ((1 << 31) - 1) ^ user.cpp:65:29: note: in expansion of macro ‘INF’ start = minim = INF; ^ user.cpp:9:26: warning: integer overflow in expression [-Woverflow] #define INF ((1 << 31) - 1) ^ user.cpp:66:23: note: in expansion of macro ‘INF’ finish = -INF; ^ user.cpp:30: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:31: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:33: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:36: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:63:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nr); ^ user.cpp:70:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &X); ^ /tmp/ccg5Jjpb.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
320ms436kbOK5
424ms432kbOK5
520ms432kbOK5
620ms432kbOK5
7196ms512kbOK5
8192ms512kbOK5
9192ms508kbOK5
100ms488kbKilled by signal 6(SIGABRT).0
110ms488kbKilled by signal 6(SIGABRT).0
120ms488kbKilled by signal 6(SIGABRT).0
130ms488kbKilled by signal 6(SIGABRT).0
140ms484kbKilled by signal 6(SIGABRT).0
150ms488kbKilled by signal 6(SIGABRT).0
16172ms856kbOK5
17296ms864kbOK5
18296ms860kbOK5
19296ms860kbOK5
20276ms864kbOK5
Punctaj total60

Ceva nu functioneaza?