Pagini recente » Borderou de evaluare (job #1891101) | Borderou de evaluare (job #3259049) | Borderou de evaluare (job #1833353) | Borderou de evaluare (job #1001920) | Borderou de evaluare (job #1600078)
Borderou de evaluare (job #1600078)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:22: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld\n", &n);
^
user.cpp:14:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%ld\n%ld\n", &a[0], &a[1]);
^
user.cpp:14:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:21:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%ld\n", &a[i]);
^
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:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld\n", &n);
^
user.cpp:14:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld\n%ld\n", &a[0], &a[1]);
^
user.cpp:21:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld\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 | 284kb | OK | 10 |
2 | 0ms | 276kb | OK | 10 |
3 | 0ms | 280kb | OK | 10 |
4 | 0ms | 272kb | OK | 10 |
5 | 0ms | 284kb | OK | 10 |
6 | 0ms | 280kb | OK | 10 |
7 | 0ms | 284kb | OK | 10 |
8 | 0ms | 288kb | OK | 10 |
9 | 0ms | 288kb | OK | 10 |
10 | 0ms | 276kb | OK | 10 |
Punctaj total | 100 |