Task: | Sanalista |
Sender: | Salama |
Submission time: | 2020-09-29 00:02:48 +0300 |
Language: | C++ (C++17) |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:13:5: error: 'cout' was not declared in this scope cout << ans; ^~~~ input/code.cpp:13:5: note: suggested alternative: In file included from input/code.cpp:1:0: /usr/include/c++/7/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^~~~
Code
#include <iostream>#include <string>int main() {int count;std::string str;int ans = 0;std::cin >> count;for(int i = 0; i < count; i++) {std::cin >> str;ans += ((str.length() % 2) != 1);}cout << ans;}