Pagini recente » Borderou de evaluare (job #505080) | Borderou de evaluare (job #665814) | Borderou de evaluare (job #2600133) | Cod sursa (job #1752771) | Borderou de evaluare (job #1119555)
Borderou de evaluare (job #1119555)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:53:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(f, "%d %d %d\n", &n, &p, &k);
^
user.cpp:53:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:53:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=]
user.cpp:55:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(f, "%d %d\n", &d[i], &c[i]);
^
user.cpp:55:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:58:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(f, "%d %d\n", &x, &y);
^
user.cpp:58:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:11:13: warning: overflow in implicit constant conversion [-Woverflow]
#define INF 0x3f3f3f3f
^
user.cpp:68:16: note: in expansion of macro ‘INF’
short mn = INF;
^
user.cpp:53:40: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d %d %d\n", &n, &p, &k);
^
user.cpp:55:43: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d %d\n", &d[i], &c[i]);
^
user.cpp:58:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d %d\n", &x, &y);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 548kb | Killed by signal 11(SIGSEGV). | 0 |
| 2 | 0ms | 544kb | Killed by signal 11(SIGSEGV). | 0 |
| 3 | 8ms | 536kb | Killed by signal 11(SIGSEGV). | 0 |
| 4 | 0ms | 544kb | Killed by signal 11(SIGSEGV). | 0 |
| 5 | 8ms | 540kb | Killed by signal 11(SIGSEGV). | 0 |
| 6 | 0ms | 544kb | Killed by signal 11(SIGSEGV). | 0 |
| 7 | 0ms | 544kb | Killed by signal 11(SIGSEGV). | 0 |
| 8 | 0ms | 544kb | Killed by signal 11(SIGSEGV). | 0 |
| 9 | 0ms | 548kb | Killed by signal 11(SIGSEGV). | 0 |
| 10 | 12ms | 544kb | Killed by signal 11(SIGSEGV). | 0 |
| Punctaj total | 0 |