Pagini recente » Borderou de evaluare (job #655707) | Borderou de evaluare (job #293451) | Borderou de evaluare (job #2744816) | Borderou de evaluare (job #1534420) | Borderou de evaluare (job #2406447)
Borderou de evaluare (job #2406447)
Raport evaluator
Compilare:
main.cpp: In function 'std::vector<int> merge(const std::vector<int>&, const std::vector<int>&)':
main.cpp:17:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i < a.size() && j < b.size()) {
~~^~~~~~~~~~
main.cpp:17:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i < a.size() && j < b.size()) {
~~^~~~~~~~~~
main.cpp:25:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i < a.size())
~~^~~~~~~~~~
main.cpp:27:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (j < b.size())
~~^~~~~~~~~~
main.cpp: In function 'std::vector<int> inter(const std::vector<int>&, const std::vector<int>&)':
main.cpp:35:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i < a.size() && j < b.size()) {
~~^~~~~~~~~~
main.cpp:35:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i < a.size() && j < b.size()) {
~~^~~~~~~~~~
main.cpp: In function 'std::vector<int> expresie()':
main.cpp:57:25: warning: array subscript has type 'char' [-Wchar-subscripts]
b = vars[cur];
^
main.cpp:70:29: warning: array subscript has type 'char' [-Wchar-subscripts]
c = vars[cur];
^
main.cpp: In function 'int main()':
main.cpp:92:20: warning: array subscript has type 'char' [-Wchar-subscripts]
vars[ch].push_back(a);
^
main.cpp:98:30: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", rez.size());
^
main.cpp:81: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:82: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:85:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &n);
^
main.cpp:89:47: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c=%d-%d/%d ", &ch, &a, &b, &c);
^
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 | 15ms | 393kb | OK! | 5 |
8 | 12ms | 520kb | OK! | 5 |
9 | 4ms | 262kb | OK! | 7 |
10 | 4ms | 262kb | OK! | 7 |
11 | 14ms | 450kb | OK! | 8 |
12 | 21ms | 651kb | OK! | 8 |
13 | 72ms | 2150kb | OK! | 6 |
14 | 83ms | 2404kb | OK! | 6 |
15 | 138ms | 3407kb | OK! | 7 |
16 | 129ms | 3694kb | OK! | 7 |
17 | 116ms | 4714kb | OK! | 7 |
18 | 88ms | 2584kb | OK! | 7 |
Punctaj total | 100 |