Pagini recente » Borderou de evaluare (job #2141260) | Borderou de evaluare (job #2482202) | Borderou de evaluare (job #1760766) | Borderou de evaluare (job #587746) | Borderou de evaluare (job #1345668)
Borderou de evaluare (job #1345668)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d%d%d", &s, &n, &c);
^
user.cpp:25:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
user.cpp:27:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d%d", &l[i], &p[i]);
^
user.cpp:27:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
user.cpp:23:20: warning: unused variable ‘k’ [-Wunused-variable]
int tip, i, j, k, c, inew, jnew;
^
user.cpp:23:26: warning: unused variable ‘inew’ [-Wunused-variable]
int tip, i, j, k, c, inew, jnew;
^
user.cpp:23:32: warning: unused variable ‘jnew’ [-Wunused-variable]
int tip, i, j, k, c, inew, jnew;
^
user.cpp:21:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sant.in", "r", stdin);
^
user.cpp:22:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sant.out", "w", stdout);
^
user.cpp:25:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &s, &n, &c);
^
user.cpp:27:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &l[i], &p[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 300kb | OK | 10 |
2 | 0ms | 288kb | OK | 10 |
3 | 0ms | 300kb | OK | 10 |
4 | 0ms | 320kb | Incorect | 0 |
5 | 0ms | 396kb | OK | 10 |
6 | 0ms | 480kb | OK | 10 |
7 | 0ms | 520kb | OK | 10 |
8 | 4ms | 604kb | OK | 10 |
9 | 12ms | 676kb | OK | 10 |
10 | 0ms | 292kb | OK | 10 |
Punctaj total | 90 |