Pagini recente » Borderou de evaluare (job #414600) | Borderou de evaluare (job #808172) | Borderou de evaluare (job #2042521) | Borderou de evaluare (job #2481482) | Borderou de evaluare (job #1583290)
Borderou de evaluare (job #1583290)
Raport evaluator
Compilare:
user.cpp: In function ‘void v2()’:
user.cpp:13:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
for(i=1;i<=n;i++) scanf("%d",&a[i]);
^
user.cpp:15:52: warning: operation on ‘n’ may be undefined [-Wsequence-point]
while((n<k)&&(a[n]+a[n-1]<ma))a[++n]=a[n-1]+a[n-2];
^
user.cpp:15:52: warning: operation on ‘n’ may be undefined [-Wsequence-point]
user.cpp:35:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
for(i=1;i<=k;i++) printf("%d ",a[i]);
^
user.cpp:12:16: warning: unused variable ‘y’ [-Wunused-variable]
{long long i,x,y,z;
^
user.cpp:12:18: warning: unused variable ‘z’ [-Wunused-variable]
{long long i,x,y,z;
^
user.cpp:13:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++) scanf("%d",&a[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:41:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("triunghi5.in","r",stdin);
^
user.cpp:42:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("triunghi5.out","w",stdout);
^
user.cpp:43:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&v,&n,&k);
^
user.cpp:47:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
{ scanf("%d",&nnr); if (nnr<minimul) minimul=nnr;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 432kb | Corect ! | 5 |
2 | 0ms | 432kb | Corect | 5 |
3 | 0ms | 436kb | Corect | 5 |
4 | 0ms | 432kb | Corect | 5 |
5 | 0ms | 428kb | Corect | 5 |
6 | 0ms | 432kb | Corect | 5 |
7 | 0ms | 428kb | Corect | 5 |
8 | 0ms | 436kb | Corect ! | 5 |
9 | 0ms | 436kb | Corect ! | 5 |
10 | 0ms | 432kb | Corect ! | 5 |
11 | 0ms | 428kb | Corect ! | 5 |
12 | 0ms | 432kb | Corect ! | 5 |
13 | 0ms | 432kb | Corect ! | 5 |
14 | 0ms | 428kb | Corect ! | 5 |
15 | 0ms | 432kb | Corect ! | 5 |
16 | 0ms | 436kb | Corect ! | 5 |
17 | 0ms | 436kb | Corect ! | 5 |
18 | 0ms | 436kb | Corect ! | 5 |
19 | 0ms | 432kb | Corect ! | 5 |
20 | 0ms | 432kb | Corect ! | 5 |
Punctaj total | 100 |