Task: | Osajono |
Sender: | Petzku |
Submission time: | 2015-09-28 19:29:40 +0300 |
Language: | C++ |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp:5:26: error: expected constructor, destructor, or type conversion before '(' token ios_base::sync_with_stdio(false); ^
Code
#include <iostream>using namespace std;ios_base::sync_with_stdio(false);int main() {int n;cin >> n;char s[n];for (int i=0; i<n; ++i) {cin >> s[i];}int c = n;for (int i=0; i<n; ++i) {for (int j=i+1; j<n; ++j) {if (s[i]==s[j]) ++c;}}cout << c;}