Pagini recente » Borderou de evaluare (job #2825111) | Borderou de evaluare (job #2498159) | Borderou de evaluare (job #631542) | Monitorul de evaluare | Borderou de evaluare (job #2348690)
Borderou de evaluare (job #2348690)
Raport evaluator
Compilare:
main.cpp: In function 'void read(const int&, const int*)':
main.cpp:36:38: warning: writing into constant object (argument 3) [-Wformat=]
fscanf(in_file, "%d", &arr_length);
^
main.cpp:38:39: warning: writing into constant object (argument 3) [-Wformat=]
fscanf(in_file, "%hu", &arr[i]);
^
main.cpp:38:39: warning: format '%hu' expects argument of type 'short unsigned int*', but argument 3 has type 'const int*' [-Wformat=]
main.cpp:36:39: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in_file, "%d", &arr_length);
^
main.cpp:38:40: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in_file, "%hu", &arr[i]);
^
main.cpp: In function 'int solve(int, const int*)':
main.cpp:101:26: warning: 'result' may be used uninitialized in this function [-Wmaybe-uninitialized]
return product / result;
^~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 6ms | 262kb | Raspuns incorect | 0 |
| 2 | 2ms | 131kb | Corect! | 5 |
| 3 | 2ms | 131kb | Raspuns incorect | 0 |
| 4 | 2ms | 131kb | Raspuns incorect | 0 |
| 5 | 4ms | 131kb | Corect! | 5 |
| 6 | 2ms | 131kb | Corect! | 5 |
| 7 | 2ms | 131kb | Corect! | 5 |
| 8 | 2ms | 131kb | Raspuns incorect | 0 |
| 9 | 2ms | 131kb | Corect! | 5 |
| 10 | 4ms | 131kb | Corect! | 5 |
| 11 | 2ms | 131kb | Raspuns incorect | 0 |
| 12 | 3ms | 131kb | Raspuns incorect | 0 |
| 13 | 2ms | 131kb | Raspuns incorect | 0 |
| 14 | 2ms | 131kb | Corect! | 5 |
| 15 | 2ms | 131kb | Raspuns incorect | 0 |
| 16 | 2ms | 131kb | Corect! | 5 |
| 17 | 2ms | 131kb | Corect! | 5 |
| 18 | 3ms | 131kb | Raspuns incorect | 0 |
| 19 | 2ms | 131kb | Raspuns incorect | 0 |
| 20 | 2ms | 131kb | Corect! | 5 |
| Punctaj total | 50 |