Task: | Sukujuhla |
Sender: | ollpu |
Submission time: | 2017-01-19 15:38:09 +0200 |
Language: | C++ |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:10:29: error: expected ';' before ')' token 10 | for (int i = 0; i <= 2*k) { | ^ | ;
Code
#include <iostream>using namespace std;int main() {ios_base::sync_with_stdio(0);cin.tie(0);int n, m, k;cin >> n >> m >> k;if (m == 1) {int pos1 = 16;for (int i = 0; i <= 2*k) {int v;cin >> v;if (v == 1) {pos1 = i;}}cout << (pos1%2 ? 'A' : 'B') << endl;} else if (m == 10) {} else {}}