Borderou de evaluare (job #1569578)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:72:34: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::basic_string<char>::size_type {aka unsigned int}’ [-Wformat=] printf("%lu\n", prefix.size()); ^ user.cpp:50: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:51: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:54: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:56:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(v[i]); ^ user.cpp:62:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:64: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:56: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/ccrRcsLi.o: In function `main': user.cpp:(.text.startup+0x96): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit1144kbTime limit exceeded.0
2Depăşit1156kbTime limit exceeded.0
3Depăşit1296kbTime limit exceeded.0
4Depăşit1288kbTime limit exceeded.0
5Depăşit1252kbTime limit exceeded.0
6Depăşit1248kbTime limit exceeded.0
7Depăşit3016kbTime limit exceeded.0
8Depăşit3088kbTime limit exceeded.0
9Depăşit3080kbTime limit exceeded.0
10Depăşit1148kbTime limit exceeded.0
11Depăşit936kbTime limit exceeded.0
12Depăşit1400kbTime limit exceeded.0
13Depăşit1160kbTime limit exceeded.0
14Depăşit1400kbTime limit exceeded.0
15Depăşit1160kbTime limit exceeded.0
16Depăşit21324kbTime limit exceeded.0
17Depăşit21424kbTime limit exceeded.0
18Depăşit21464kbTime limit exceeded.0
19Depăşit21316kbTime limit exceeded.0
20Depăşit21312kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?