Pagini recente » Borderou de evaluare (job #974024) | Borderou de evaluare (job #2947249) | Borderou de evaluare (job #1820765) | Borderou de evaluare (job #503318) | Borderou de evaluare (job #1358081)
Borderou de evaluare (job #1358081)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:45:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d",&mat[i][j]);
^
user.cpp:38:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lacusta.in","r",stdin);
^
user.cpp:39:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lacusta.out","w",stdout);
^
user.cpp:41:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
user.cpp:45:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&mat[i][j]);
^
user.cpp: In function ‘int mn(int)’:
user.cpp:34:12: warning: ‘jminim’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return jminim;
^
user.cpp: In function ‘int main()’:
user.cpp:58:71: warning: ‘jminim’ may be used uninitialized in this function [-Wmaybe-uninitialized]
sol[i][j] = mat[i][j] + mat[i-1][j] + min(i-1, 2, jmin);
^
user.cpp:58:51: warning: ‘jminim’ may be used uninitialized in this function [-Wmaybe-uninitialized]
sol[i][j] = mat[i][j] + mat[i-1][j] + min(i-1, 2, jmin);
^
user.cpp:49:17: warning: ‘jminim’ may be used uninitialized in this function [-Wmaybe-uninitialized]
jmin = mn(2);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 36ms | 500kb | Incorect | 0 | 0 |
2 | 20ms | 452kb | OK | 10 |
3 | 0ms | 308kb | OK | 10 |
4 | 0ms | 312kb | OK | 10 | 30 |
5 | 0ms | 360kb | OK | 10 |
6 | 0ms | 328kb | OK | 10 |
7 | 0ms | 300kb | OK | 10 | 40 |
8 | 4ms | 348kb | OK | 10 |
9 | 4ms | 360kb | OK | 10 |
10 | 32ms | 480kb | OK | 10 |
Punctaj total | 70 |