Pagini recente » Borderou de evaluare (job #179266) | Borderou de evaluare (job #38365) | Borderou de evaluare (job #2687702) | Borderou de evaluare (job #417815) | Borderou de evaluare (job #1245898)
Borderou de evaluare (job #1245898)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%ld",&n);
^
user.cpp:23:40: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
if (s1>s2) printf("%ld",s1-s2);
^
user.cpp:24:40: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
else printf("%ld",s2-s1);
^
user.cpp:44:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
if (sum1>sum2) printf("%ld",sum1-sum2);
^
user.cpp:45:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
else printf("%ld",sum2-sum1);
^
user.cpp:51:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
if (sum1>sum2) printf("%ld",sum1-sum2);
^
user.cpp:52:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
else printf("%ld",sum2-sum1);
^
user.cpp:10:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pizza.in","r",stdin);
^
user.cpp:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pizza.out","w",stdout);
^
user.cpp:12:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&n);
^
user.cpp:14:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&v[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 436kb | Incorect | 0 | 0 |
2 | 0ms | 440kb | Incorect | 0 |
3 | 0ms | 436kb | Incorect | 0 |
4 | 0ms | 444kb | Incorect | 0 |
5 | 0ms | 444kb | Incorect | 0 |
6 | 0ms | 440kb | Incorect | 0 |
7 | 0ms | 448kb | Incorect | 0 |
8 | 0ms | 456kb | Incorect | 0 |
9 | 0ms | 472kb | Incorect | 0 |
10 | 0ms | 452kb | Incorect | 0 |
Punctaj total | 0 |