Pagini recente » Borderou de evaluare (job #586729) | Borderou de evaluare (job #950041) | Borderou de evaluare (job #2557339) | Borderou de evaluare (job #2436337) | Borderou de evaluare (job #1417958)
Borderou de evaluare (job #1417958)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:43:37: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
if (rez==1) printf("%ld\n",1);
^
user.cpp:44:34: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
else printf("%ld\n",0);}
^
user.cpp:45:40: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
else if (k==1) printf("%ld\n",0);
^
user.cpp:46:58: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
else if (k==2) if (z[2]-z[1]==1) printf("%ld\n",1);
^
user.cpp:47:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
else printf("%ld\n",0);
^
user.cpp:46:17: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
else if (k==2) if (z[2]-z[1]==1) printf("%ld\n",1);
^
user.cpp:25:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("purice2.in","r",stdin);
^
user.cpp:26:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("purice2.out","w",stdout);
^
user.cpp:27:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&t);
^
user.cpp:30:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&n);
^
user.cpp:31:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=n;i++) scanf("%ld",&v[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 440kb | OK | 10 |
2 | 0ms | 440kb | OK | 10 |
3 | 0ms | 444kb | OK | 10 |
4 | 0ms | 440kb | OK | 10 |
5 | 0ms | 436kb | OK | 10 |
6 | 0ms | 440kb | OK | 10 |
7 | 0ms | 444kb | OK | 10 |
8 | 0ms | 440kb | OK | 10 |
9 | 0ms | 444kb | OK | 10 |
10 | 0ms | 444kb | OK | 10 |
Punctaj total | 100 |