Pagini recente » Cod sursa (job #2583626) | Cod sursa (job #300266) | Cod sursa (job #1351117) | Cod sursa (job #2657099) | Borderou de evaluare (job #1657874)
Borderou de evaluare (job #1657874)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:8:44: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%ld%ld%ld%ld%ld", &l, &p, &d, &c, &n);
^
user.cpp:8:44: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:8:44: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp:8:44: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘long long int*’ [-Wformat=]
user.cpp:8:44: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 6 has type ‘long long int*’ [-Wformat=]
user.cpp:10:24: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
{scanf("%ld", &g[i]);
^
user.cpp:6:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
{freopen ("gaz.in", "r", stdin);
^
user.cpp:7:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("gaz.out", "w", stdout);
^
user.cpp:8:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld%ld%ld%ld%ld", &l, &p, &d, &c, &n);
^
user.cpp:10:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
{scanf("%ld", &g[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 460kb | OK | 10 |
2 | 0ms | 456kb | OK | 10 |
3 | 0ms | 460kb | OK | 10 |
4 | 0ms | 460kb | OK | 10 |
5 | 0ms | 460kb | OK | 10 |
6 | 0ms | 464kb | OK | 10 |
7 | 0ms | 460kb | OK | 10 |
8 | 0ms | 464kb | OK | 10 |
9 | 0ms | 468kb | OK | 10 |
10 | 48ms | 472kb | OK | 10 |
Punctaj total | 100 |