Borderou de evaluare (job #1569581)

Utilizator tudorcomanTudor Coman tudorcoman Data 15 ianuarie 2016 18:57:56
Problema Ratina Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp:6:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] char* emptyStr = ""; ^ user.cpp: In function ‘int main()’: user.cpp:71:35: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t {aka unsigned int}’ [-Wformat=] printf("%lu\n", strlen(prefix)); ^ user.cpp:51:35: 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:52:37: 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:55:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &N, &Q); ^ user.cpp:57:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(v[i]); ^ user.cpp:63:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:65:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &ind[i]); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:2: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:57:15: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/cckUKsPb.o: In function `main': user.cpp:(.text.startup+0x7e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms1056kbKilled by signal 6(SIGABRT).0
24ms1148kbKilled by signal 6(SIGABRT).0
34ms1328kbKilled by signal 6(SIGABRT).0
44ms1328kbKilled by signal 6(SIGABRT).0
54ms1288kbKilled by signal 6(SIGABRT).0
64ms1288kbKilled by signal 6(SIGABRT).0
78ms3020kbKilled by signal 6(SIGABRT).0
88ms3092kbKilled by signal 6(SIGABRT).0
98ms3084kbKilled by signal 6(SIGABRT).0
104ms1144kbKilled by signal 6(SIGABRT).0
114ms928kbKilled by signal 6(SIGABRT).0
128ms1412kbKilled by signal 6(SIGABRT).0
134ms1152kbKilled by signal 6(SIGABRT).0
144ms1312kbKilled by signal 6(SIGABRT).0
154ms1152kbKilled by signal 6(SIGABRT).0
1628ms21332kbKilled by signal 6(SIGABRT).0
1732ms21448kbKilled by signal 6(SIGABRT).0
1832ms21496kbKilled by signal 6(SIGABRT).0
1928ms21348kbKilled by signal 6(SIGABRT).0
2028ms21336kbKilled by signal 6(SIGABRT).0
Punctaj total0

Ceva nu functioneaza?