Submission #715035

#TimeUsernameProblemLanguageResultExecution timeMemory
715035ELc0421Kamenčići (COCI21_kamencici)C++14
0 / 70
0 ms212 KiB
#include <iostream> using namespace std; int main() { int n, k, reds = 0; cin >> n >> k; for (int i = 0; i < n; i++) { int pebble; cin >> pebble; if (pebble = 1) { reds++; } } if (reds >= k) { cout << "Auntun wins!"; } else { cout << "Branka wins!"; } return 0; }

Compilation message (stderr)

Main.cpp: In function 'int main()':
Main.cpp:10:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   10 |     if (pebble = 1) {
      |         ~~~~~~~^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...