Pagini recente » Borderou de evaluare (job #2373403) | Borderou de evaluare (job #2131039) | Borderou de evaluare (job #2865599) | Borderou de evaluare (job #1635200) | Borderou de evaluare (job #2206757)
Borderou de evaluare (job #2206757)
Raport evaluator
Compilare:
user.cpp:10:0: warning: "INFINITY" redefined
#define INFINITY 0x3f3f3f3f
In file included from /usr/include/math.h:41:0,
from /usr/include/c++/6/cmath:45,
from /usr/include/c++/6/math.h:36,
from user.cpp:4:
/usr/include/bits/inf.h:26:0: note: this is the location of the previous definition
# define INFINITY (__builtin_inff())
user.cpp: In function ‘int solve(std::vector<int>, int)’:
user.cpp:28:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i <= a.size(); ++i) {
~~^~~~~~~~~~~
user.cpp:55:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i <= a.size(); ++i) {
~~^~~~~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:65:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pipe.in", "r", stdin);
^
user.cpp:66:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pipe.out", "w", stdout);
^
user.cpp:68:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:69:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &sx, &sy);
^
user.cpp:70:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &dx, &dy);
^
user.cpp:76:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c %d\n", &c, &l);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 24ms | 13460kb | OK | 10 |
2 | 36ms | 13460kb | OK | 10 |
3 | 24ms | 13460kb | OK | 10 |
4 | 28ms | 13460kb | OK | 10 |
5 | 44ms | 13460kb | OK | 10 |
6 | 36ms | 13460kb | OK | 10 |
7 | 44ms | 13456kb | OK | 10 |
8 | 68ms | 13456kb | OK | 10 |
9 | 72ms | 13456kb | OK | 10 |
10 | 24ms | 13456kb | OK | 10 |
Punctaj total | 100 |