Borderou de evaluare (job #695008)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Alune (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 feb. 2023 17:50:52 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void debug(std::vector<int>)':
main.cpp:52:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
52 | for(int i = 0;i < v.size();i++) cout << v[i] << ' ';
| ~~^~~~~~~~~~
main.cpp: In function 'std::string decToBin(int, int)':
main.cpp:71:22: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare]
71 | while(ans.size() < sz) ans.insert(ans.begin(), '0');
| ~~~~~~~~~~~^~~~
main.cpp:64:9: warning: unused variable 'it' [-Wunused-variable]
64 | int it = 0;
| ^~
main.cpp: In function 'int main()':
main.cpp:92:16: error: '__algo_gcd' was not declared in this scope
92 | LCM /= __algo_gcd(c[i - 1], c[i]);
| ^~~~~~~~~~