Borderou de evaluare (job #2406447)

Utilizator Tiberiu02Tiberiu Musat Tiberiu02 Data 15 aprilie 2019 19:11:57
Problema Multimi4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

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
12ms131kbOK!3
22ms131kbOK!3
33ms131kbOK!3
43ms131kbOK!3
53ms131kbOK!3
63ms131kbOK!5
715ms393kbOK!5
812ms520kbOK!5
94ms262kbOK!7
104ms262kbOK!7
1114ms450kbOK!8
1221ms651kbOK!8
1372ms2150kbOK!6
1483ms2404kbOK!6
15138ms3407kbOK!7
16129ms3694kbOK!7
17116ms4714kbOK!7
1888ms2584kbOK!7
Punctaj total100

Ceva nu functioneaza?