Borderou de evaluare (job #2053650)

Utilizator DruffbaumPopescu Vlad Druffbaum Data 1 noiembrie 2017 00:10:18
Problema Sobo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sobo.in", "r", stdin); ^ user.cpp:24:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &n, &l); ^ user.cpp:26:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(h[i] + 1); ^ user.cpp:30:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &c[i]); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:26:19: /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/ccQje4jL.o: In function `main': user.cpp:(.text.startup+0x64): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbCool!10
20ms276kbCool!10
30ms264kbWall time limit exceeded.0
40ms256kbWall time limit exceeded.0
516ms316kbCool!10
60ms264kbWall time limit exceeded.0
70ms264kbWall time limit exceeded.0
80ms260kbWall time limit exceeded.0
90ms264kbWall time limit exceeded.0
100ms268kbWall time limit exceeded.0
Punctaj total30

Ceva nu functioneaza?