| Task: | Stone game |
| Sender: | aalto26am_016 |
| Submission time: | 2026-08-31 16:32:54 +0300 |
| Language: | C++ (C++20) |
| Status: | COMPILE ERROR |
Compiler report
input/code.cpp: In function 'int main()':
input/code.cpp:12:31: error: expected ';' before '}' token
12 | std::cout << "Maija\n"
| ^
| ;
13 | }
| ~Code
#include <iostream>
int main(){
int pile1, pile2;
std::cin >> pile1 >> pile2;
if ((pile1+pile2)%2==0){
std::cout << "Uolevi\n";
} else {
std::cout << "Maija\n"
}
return 0;
}
//1 2
//0 3
//