Submission #83763

#TimeUsernameProblemLanguageResultExecution timeMemory
83763ffrichAron (COCI17_aron)C++14
Compilation error
0 ms0 KiB
#include <cstdio> #include <iostream> using namespace std; int main() { // ios::sync_with_stdio(0); // cin.tie(0); int n, br = 1; cin >> n; char a[27]; for (int i = 0; i < n; ++i) cin >> a[i]; for (int i = 1; i < n; ++i) if (a[i] == a[i - 1]) br++; } cout << br + 1; return 0; }

Compilation message (stderr)

aron.cpp:19:3: error: 'cout' does not name a type
   cout << br + 1;
   ^~~~
aron.cpp:21:3: error: expected unqualified-id before 'return'
   return 0;
   ^~~~~~
aron.cpp:22:1: error: expected declaration before '}' token
 }
 ^