Pagini recente » Borderou de evaluare (job #2005855) | Borderou de evaluare (job #1385451) | Borderou de evaluare (job #1569481) | Cod sursa (job #3268479) | Borderou de evaluare (job #2155683)
Borderou de evaluare (job #2155683)
Raport evaluator
Compilare:
user.cpp: In function ‘bool task1()’:
user.cpp:22:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return result.back() < 2e9 + 1 && result.size() == slut; }
^
user.cpp: In function ‘bool task2()’:
user.cpp:34:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < result.size() && !flag; ++i)
^
user.cpp:36:79: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (fib(fib(result[i - 1], i > 1 ? result[i - 2] : 0), result[i]) < (i + 1 < result.size() ? result[i + 1] : 2e9 + 1)) {
^
user.cpp:50:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return result.back() < 2e9 + 1 && result.size() == slut; }
^
user.cpp: In function ‘int main()’:
user.cpp:60:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &i);
^
user.cpp:73:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < result.size(); ++i)
^
user.cpp:74:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
printf("%d%c", result[i], " \n"[i == result.size() - 1]);
^
user.cpp:74:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}’ [-Wformat=]
printf("%d%c", result[i], " \n"[i == result.size() - 1]);
^
user.cpp:54:37: 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); // sa folosesti stdio cu stl e ca si cum ai trage caruta cu veyronul.
^
user.cpp:55:39: 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:57:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &tsk, &n, &k);
^
user.cpp:60:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &i);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
2 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
3 | 0ms | 1280kb | Lungimi invalide in OUTPUT | 0 |
4 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
5 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
6 | 0ms | 1280kb | Lungimi invalide in OUTPUT | 0 |
7 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
8 | 0ms | 1280kb | Lungimi invalide in OUTPUT | 0 |
9 | 0ms | 1280kb | Lungimi invalide in OUTPUT | 0 |
10 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
11 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
12 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
13 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
14 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
15 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
16 | 0ms | 1280kb | Lungimi invalide in OUTPUT | 0 |
17 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
18 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
19 | 0ms | 1284kb | Lungimi invalide in OUTPUT | 0 |
20 | 0ms | 1280kb | Lungimi invalide in OUTPUT | 0 |
Punctaj total | 0 |