Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/eezotop/cpp_projects/cf-contest/src/return.cpp:27:5: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
- ll a, b, ab, ba;
- ^~~~~~~~~~~~~~~~
- /home/eezotop/cpp_projects/cf-contest/src/return.cpp:27:8: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
- ll a, b, ab, ba;
- ^
- = 0
- /home/eezotop/cpp_projects/cf-contest/src/return.cpp:27:11: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
- ll a, b, ab, ba;
- ^
- = 0
- /home/eezotop/cpp_projects/cf-contest/src/return.cpp:27:14: warning: variable 'ab' is not initialized [cppcoreguidelines-init-variables]
- ll a, b, ab, ba;
- ^
- = 0
- /home/eezotop/cpp_projects/cf-contest/src/return.cpp:27:18: warning: variable 'ba' is not initialized [cppcoreguidelines-init-variables]
- ll a, b, ab, ba;
- ^
- = 0
- /home/eezotop/cpp_projects/cf-contest/src/return.cpp:37:9: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
- assert(curr_count == in.size());
- ^
- /usr/include/assert.h:95:51: note: expanded from macro 'assert'
- : __assert_fail (#expr, __FILE__, __LINE__, __ASSERT_FUNCTION))
- ^
- /usr/include/assert.h:129:30: note: expanded from macro '__ASSERT_FUNCTION'
- # define __ASSERT_FUNCTION __extension__ __PRETTY_FUNCTION__
- ^
- /home/eezotop/cpp_projects/cf-contest/src/return.cpp:49:15: warning: do not use 'else' after 'break' [readability-else-after-return]
- } else if (in[idx + 1] != curr_ch) {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [3/5] Linking CXX static library libmy-library.a
- [4/5] Building CXX object CMakeFiles/my-exec.dir/src/main.cpp.o
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:14:31: warning: converting integer literal to bool, use bool literal instead [modernize-use-bool-literals]
- ios_base::sync_with_stdio(0);
- ^
- note: this fix will not be applied because it overlaps with another fix
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:14:31: warning: implicit conversion 'int' -> bool [readability-implicit-bool-conversion]
- note: this fix will not be applied because it overlaps with another fix
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:15:13: warning: use nullptr [modernize-use-nullptr]
- cin.tie(0);
- ^
- nullptr
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:16:14: warning: use nullptr [modernize-use-nullptr]
- cout.tie(0);
- ^
- nullptr
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:19:19: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
- long long int k; cin >> k;
- ^
- = 0
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:27:19: warning: variable 'alpha' is not initialized [cppcoreguidelines-init-variables]
- long long int alpha; cin >> alpha;
- ^
- = 0
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:29:19: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
- long long int n; cin >> n;
- ^
- = 0
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:37:23: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
- long long int c; cin >> c; c--;
- ^
- = 0
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:38:23: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
- long long int l; cin >> l;
- ^
- = 0
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:54:26: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers]
- cout << setprecision(20);
- ^
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:54:26: warning: 20 is a magic number; consider replacing it with a named constant [readability-magic-numbers]
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:56:19: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
- long long int m; cin >> m;
- ^
- = 0
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:59:23: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
- long long int l; cin >> l;
- ^
- = 0
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:78:32: warning: implicit conversion 'std::unordered_set<std::__cxx11::basic_string<char>, std::hash<std::string>, std::equal_to<std::__cxx11::basic_string<char> >, std::allocator<std::__cxx11::basic_string<char> > >::size_type' (aka 'unsigned long') -> bool [readability-implicit-bool-conversion]
- sum_log += log(in_test.count(word) ? div : EDINITSA - div);
- ^
- != 0u
- /home/eezotop/cpp_projects/cf-contest/src/main.cpp:86:9: warning: use range-based for loop instead [modernize-loop-convert]
- for (int mem = 0; mem < classify.size(); mem++)
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (long double & mem : classify)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement