Pagini recente » Borderou de evaluare (job #2395103) | Borderou de evaluare (job #346489) | Borderou de evaluare (job #542258) | Borderou de evaluare (job #1998258) | Borderou de evaluare (job #1554461)
Borderou de evaluare (job #1554461)
Raport evaluator
Compilare:
user.cpp: In function ‘void cer2()’:
user.cpp:24:69: warning: operation on ‘n’ may be undefined [-Wsequence-point]
while(n < k && INT_MAX > a[n] + a[n-1]) a[++n] = a[n-1] + a[n-2];
^
user.cpp:24:69: warning: operation on ‘n’ may be undefined [-Wsequence-point]
user.cpp:40:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d ", a[i]);
^
user.cpp:20:18: warning: unused variable ‘x’ [-Wunused-variable]
long long i, x, z, y;
^
user.cpp:20:21: warning: unused variable ‘z’ [-Wunused-variable]
long long i, x, z, y;
^
user.cpp:20:24: warning: unused variable ‘y’ [-Wunused-variable]
long long i, x, z, y;
^
user.cpp: In function ‘void cer1()’:
user.cpp:12:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x), minn = min(minn, x);
^
user.cpp: In function ‘void cer2()’:
user.cpp:22:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &a[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:44:40: 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:45:42: 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:46:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld%lld", &v, &n, &k);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 252kb | Corect ! | 5 |
2 | 0ms | 260kb | Corect | 5 |
3 | 0ms | 256kb | Corect | 5 |
4 | 0ms | 260kb | Corect | 5 |
5 | 0ms | 260kb | Corect | 5 |
6 | 0ms | 264kb | Corect | 5 |
7 | 0ms | 260kb | Corect | 5 |
8 | 0ms | 252kb | Corect ! | 5 |
9 | 0ms | 248kb | Corect ! | 5 |
10 | 0ms | 256kb | Corect ! | 5 |
11 | 0ms | 252kb | Corect ! | 5 |
12 | 0ms | 252kb | Corect ! | 5 |
13 | 0ms | 252kb | Corect ! | 5 |
14 | 0ms | 252kb | Lungimi invalide in OUTPUT | 0 |
15 | 0ms | 252kb | Lungimi invalide in OUTPUT | 0 |
16 | 0ms | 252kb | Corect ! | 5 |
17 | 0ms | 248kb | Corect ! | 5 |
18 | 0ms | 256kb | Corect ! | 5 |
19 | 0ms | 248kb | Corect ! | 5 |
20 | 0ms | 256kb | Corect ! | 5 |
Punctaj total | 90 |