Pagini recente » Borderou de evaluare (job #52124) | Borderou de evaluare (job #1410294) | Borderou de evaluare (job #1633801) | Borderou de evaluare (job #2704277) | Borderou de evaluare (job #2351077)
Borderou de evaluare (job #2351077)
Raport evaluator
Compilare:
main.cpp: In function 'void show(const std::vector<int>&)':
main.cpp:13:28: warning: format '%i' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%i\n", A.size());
^
main.cpp: In function 'std::vector<int> operator*(std::vector<int>, std::vector<int>)':
main.cpp:23:10: warning: variable 'it' set but not used [-Wunused-but-set-variable]
auto it = set_intersection(A.begin(), A.end(), B.begin(), B.end(), inserter(R, R.begin()));
^~
main.cpp: In function 'std::vector<int> operator+(std::vector<int>, std::vector<int>)':
main.cpp:30:10: warning: variable 'it' set but not used [-Wunused-but-set-variable]
auto it = set_union(A.begin(), A.end(), B.begin(), B.end(), inserter(R, R.begin()));
^~
main.cpp: In function 'int main()':
main.cpp:92:19: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1001]' [-Wformat=]
scanf("%s", &s);
^
main.cpp:66:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("multimi4.in", "r", stdin);
^
main.cpp:67:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("multimi4.out", "w", stdout);
^
main.cpp:68:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i", &N);
^
main.cpp:73:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s);
^
main.cpp:92:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &s);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK! | 3 |
2 | 2ms | 131kb | OK! | 3 |
3 | 3ms | 131kb | OK! | 3 |
4 | 3ms | 131kb | OK! | 3 |
5 | 3ms | 131kb | OK! | 3 |
6 | 3ms | 131kb | OK! | 5 |
7 | 25ms | 393kb | OK! | 5 |
8 | 16ms | 651kb | OK! | 5 |
9 | 5ms | 262kb | OK! | 7 |
10 | 4ms | 262kb | OK! | 7 |
11 | 20ms | 565kb | OK! | 8 |
12 | 30ms | 786kb | OK! | 8 |
13 | 101ms | 2924kb | OK! | 6 |
14 | 114ms | 2871kb | OK! | 6 |
15 | 190ms | 4145kb | OK! | 7 |
16 | 163ms | 3596kb | OK! | 7 |
17 | 193ms | 6254kb | OK! | 7 |
18 | 146ms | 3088kb | OK! | 7 |
Punctaj total | 100 |