Borderou de evaluare (job #1762332)

Utilizator bogdan10bosBogdan Sitaru bogdan10bos Data 23 septembrie 2016 14:30:43
Problema Gravity Status done
Runda Algoritmiada 2016 Runda Finala Seniors Compilator cpp | Vezi sursa
Scor 32

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:75:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < blocks.size(); i++) ^ user.cpp:84:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < blocks[i].size(); j++) ^ user.cpp:92:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < blocks[i].size(); j++) ^ user.cpp:30:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gravity.in", "r", stdin); ^ user.cpp:31:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gravity.out", "w", stdout); ^ user.cpp:34:28: 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:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[i] + 1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:36:23: /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/ccXwqH2Y.o: In function `main': user.cpp:(.text.startup+0x83): warning: the `gets' function is dangerous and should not be used.
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1176ms3172kbOK!1032
2212ms3480kbOK!10
3164ms3316kbOK!12
4Depăşit28476kbTime limit exceeded.00
5Depăşit28640kbTime limit exceeded.0
6Depăşit24692kbTime limit exceeded.00
7Depăşit24092kbTime limit exceeded.0
8Depăşit24280kbTime limit exceeded.0
9Depăşit17424kbTime limit exceeded.0
10Depăşit25228kbTime limit exceeded.0
11Depăşit57752kbTime limit exceeded.00
Punctaj total32

Ceva nu functioneaza?