Borderou de evaluare (job #2107793)

Utilizator Cristi_ChiraChira Cristian Cristi_Chira Data 17 ianuarie 2018 18:31:48
Problema Interesant Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void rez1()’: user.cpp:3:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define x first ^ user.cpp:19:31: note: in expansion of macro ‘x’ if(s[i].size() > maxx.x || (s[i].size() == maxx.x && s[i] < maxx.y)) ^ user.cpp:3:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define x first ^ user.cpp:19:57: note: in expansion of macro ‘x’ if(s[i].size() > maxx.x || (s[i].size() == maxx.x && s[i] < maxx.y)) ^ user.cpp: In function ‘int verif(int, int)’: user.cpp:32:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(l<s[j].size() && k < s[i].size()) ^ user.cpp:32:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(l<s[j].size() && k < s[i].size()) ^ user.cpp:38:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return (k == s[i].size()); ^ user.cpp: In function ‘void rez2()’: user.cpp:64:21: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::basic_string<char> >’ and ‘std::basic_string<char>’) fout << rasp[i] << "\n"; ^ user.cpp:64:21: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64, from user.cpp:1: /usr/include/c++/4.8/bits/stl_vector.h:770:7: note: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::basic_string<char>; _Alloc = std::allocator<std::basic_string<char> >; std::vector<_Tp, _Alloc>::reference = std::basic_string<char>&; std::vector<_Tp, _Alloc>::size_type = unsigned int] operator[](size_type __n) ^ /usr/include/c++/4.8/bits/stl_vector.h:770:7: note: no known conversion for argument 1 from ‘std::basic_string<char>’ to ‘std::vector<std::basic_string<char> >::size_type {aka unsigned int}’ /usr/include/c++/4.8/bits/stl_vector.h:785:7: note: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = std::basic_string<char>; _Alloc = std::allocator<std::basic_string<char> >; std::vector<_Tp, _Alloc>::const_reference = const std::basic_string<char>&; std::vector<_Tp, _Alloc>::size_type = unsigned int] operator[](size_type __n) const ^ /usr/include/c++/4.8/bits/stl_vector.h:785:7: note: no known conversion for argument 1 from ‘std::basic_string<char>’ to ‘std::vector<std::basic_string<char> >::size_type {aka unsigned int}’

Ceva nu functioneaza?