Task: | Sukujuhla |
Sender: | ollpu |
Submission time: | 2017-01-19 15:37:42 +0200 |
Language: | C++ |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp:2:7: error: expected nested-name-specifier before 'namepsace' 2 | using namepsace std; | ^~~~~~~~~ input/code.cpp: In function 'int main()': input/code.cpp:4:3: error: 'ios_base' has not been declared 4 | ios_base::sync_with_stdio(0); | ^~~~~~~~ input/code.cpp:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin.tie(0); | ^~~ | std::cin In file included from input/code.cpp:1: /usr/include/c++/11/iostream:60:18: note: 'std::cin' declared here 60 | extern istream cin; /// Linked to standard input | ^~~ input/code.cpp:10:29: error: expected ';' before ')' token 10 | for (int i = 0; i <= 2*k) { | ^ | ; input/code.cpp:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 17 | cout << (pos1%2 ? 'A' : 'B') << endl; | ^~~~ | std::cout In...
Code
#include <iostream>using namepsace 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 {}}