Submission #83752

#TimeUsernameProblemLanguageResultExecution timeMemory
83752ffrichAron (COCI17_aron)C++14
50 / 50
2 ms624 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 stari, novi; cin >> stari; for (int i = 0; i < n - 1; ++i){ cin >> novi; if (novi != stari) br++; stari = novi; } cout << br + 1; printf("\n\n"); system("pause"); return 0; }

Compilation message (stderr)

aron.cpp: In function 'int main()':
aron.cpp:23:9: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
   system("pause");
   ~~~~~~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...