Pagini recente » Borderou de evaluare (job #2468904) | Borderou de evaluare (job #2616920) | Borderou de evaluare (job #1254212) | Borderou de evaluare (job #3243912) | Borderou de evaluare (job #1594100)
Borderou de evaluare (job #1594100)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d\n%d\n", &a[0], &a[1]);
^
user.cpp:14:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
user.cpp:21:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d\n", &a[i]);
^
user.cpp:53:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%ld\n",s);
^
user.cpp:7:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("expresie.in","r",stdin);
^
user.cpp:8:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("expresie.out","w",stdout);
^
user.cpp:12:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:14:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n%d\n", &a[0], &a[1]);
^
user.cpp:21:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &a[i]);
^
user.cpp:50:33: warning: ‘nr3’ may be used uninitialized in this function [-Wmaybe-uninitialized]
s=s-a[nr3]-a[nr3-1]-a[nr3-2];
^
user.cpp:45:27: warning: ‘nr2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
s=s-a[nr1-1]-a[nr2-1];
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 268kb | OK | 10 |
| 2 | 0ms | 264kb | OK | 10 |
| 3 | 0ms | 268kb | OK | 10 |
| 4 | 0ms | 268kb | OK | 10 |
| 5 | 0ms | 268kb | OK | 10 |
| 6 | 0ms | 268kb | OK | 10 |
| 7 | 0ms | 260kb | Incorect | 0 |
| 8 | 0ms | 264kb | Incorect | 0 |
| 9 | 0ms | 264kb | OK | 10 |
| 10 | 0ms | 260kb | OK | 10 |
| Punctaj total | 80 |