Pagini recente » Borderou de evaluare (job #1242621) | Borderou de evaluare (job #493927) | Borderou de evaluare (job #2782890) | Borderou de evaluare (job #1226189) | Borderou de evaluare (job #1234328)
Borderou de evaluare (job #1234328)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d%d%d",&n,&m,&x);x=0;
^
user.cpp:9:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
user.cpp:9:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=]
user.cpp:12:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
for (j=0;j<m;j++) scanf("%d",&a[j]);
^
user.cpp:34:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d\n%d",x,max);
^
user.cpp:34:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
user.cpp:7:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("livada.in","r",stdin);
^
user.cpp:8:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("livada.out","w",stdout);
^
user.cpp:9:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&m,&x);x=0;
^
user.cpp:12:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (j=0;j<m;j++) scanf("%d",&a[j]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 252kb | OK! | 10 |
| 2 | 0ms | 248kb | OK! | 10 |
| 3 | 0ms | 224kb | Wall time limit exceeded. | 0 |
| 4 | 0ms | 220kb | Killed by signal 11(SIGSEGV). | 0 |
| 5 | 0ms | 216kb | Killed by signal 11(SIGSEGV). | 0 |
| 6 | 0ms | 220kb | Killed by signal 11(SIGSEGV). | 0 |
| 7 | 0ms | 220kb | Killed by signal 11(SIGSEGV). | 0 |
| 8 | 0ms | 220kb | Killed by signal 11(SIGSEGV). | 0 |
| 9 | 0ms | 216kb | Killed by signal 11(SIGSEGV). | 0 |
| 10 | 0ms | 216kb | Killed by signal 11(SIGSEGV). | 0 |
| Punctaj total | 20 |