Pagini recente » Borderou de evaluare (job #338035) | Borderou de evaluare (job #796121) | Borderou de evaluare (job #791702) | Borderou de evaluare (job #732265) | Borderou de evaluare (job #2530596)
Borderou de evaluare (job #2530596)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:29:23: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[403]' [-Wformat=]
scanf("%s",&aa);
^
main.cpp:59:37: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
if(pi1<=n && pi2<=n & pj1<=m && pj2<=m && pi1>0 && pi2>0 && pj1>0 && pj2>0 && b[pi1][pj1]!=b[pi2][pj2] && a[pi1][pj1]==a[pi2][pj2])
~~~^~~
main.cpp:24:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ferma3.in","r",stdin);
^
main.cpp:25:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ferma3.out","w",stdout);
^
main.cpp:26:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&c,&n,&m);
^
main.cpp:29:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&aa);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 3ms | 393kb | Corect! Varianta 1 | 5 |
| 2 | 3ms | 393kb | Corect! Varianta 1 | 5 |
| 3 | 5ms | 786kb | Corect! Varianta 1 | 5 |
| 4 | 7ms | 917kb | Corect! Varianta 1 | 5 |
| 5 | 33ms | 8650kb | Corect! Varianta 1 | 5 |
| 6 | 2ms | 131kb | Coloana in afara matricei | 0 |
| 7 | 3ms | 262kb | Gresit! | 0 |
| 8 | 3ms | 262kb | Gresit! | 0 |
| 9 | 5ms | 393kb | Gresit! | 0 |
| 10 | 5ms | 393kb | Gresit! | 0 |
| 11 | 10ms | 524kb | Gresit! | 0 |
| 12 | 17ms | 786kb | Gresit! | 0 |
| 13 | 32ms | 1310kb | Gresit! | 0 |
| 14 | 20ms | 786kb | Gresit! | 0 |
| 15 | 36ms | 1048kb | Gresit! | 0 |
| 16 | 39ms | 1048kb | Gresit! | 0 |
| 17 | 39ms | 1179kb | Gresit! | 0 |
| 18 | 36ms | 1048kb | Gresit! | 0 |
| 19 | 61ms | 1572kb | Gresit! | 0 |
| 20 | 2ms | 131kb | Corect! Varianta 1 | 5 |
| Punctaj total | 30 |