Pagini recente » Borderou de evaluare (job #68676) | Borderou de evaluare (job #1673649) | Borderou de evaluare (job #317766) | Borderou de evaluare (job #1945197) | Borderou de evaluare (job #2421278)
Borderou de evaluare (job #2421278)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:43:28: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'size_t* {aka long unsigned int*}' [-Wformat=]
scanf("%d", &N, ++p);
^
main.cpp:43:28: warning: too many arguments for format [-Wformat-extra-args]
main.cpp:82:67: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=]
printf(unpaired > N >> 1 ? "%d %d" : "-1", candidate, unpaired);
^
main.cpp:82:67: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=]
main.cpp: At global scope:
main.cpp:7:39: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) size_t get_number()
^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:36:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("elmaj.in", "r", stdin);
^
main.cpp:37:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("elmaj.out", "w", stdout);
^
main.cpp:43:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N, ++p);
^
main.cpp:50:39: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(inBuffer, 1, 8388608, stdin);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 3ms | 262kb | OK | 10 |
5 | 5ms | 786kb | OK | 10 |
6 | 2ms | 131kb | OK | 10 |
7 | 2ms | 131kb | OK | 10 |
8 | 2ms | 131kb | OK | 10 |
9 | 2ms | 131kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 |
Punctaj total | 100 |