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' using namepsace std; ^ input/code.cpp:2:7: error: 'namepsace' has not been declared input/code.cpp:2:17: error: expected ';' before 'std' using namepsace std; ^ input/code.cpp:2:17: error: 'std' does not name a type input/code.cpp: In function 'int main()': input/code.cpp:4:3: error: 'ios_base' has not been declared ios_base::sync_with_stdio(0); ^ input/code.cpp:5:3: error: 'cin' was not declared in this scope cin.tie(0); ^ input/code.cpp:5:3: note: suggested alternative: In file included from input/code.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ input/code.cpp:10:29: error: expected ';' before ')' token for (int i = 0; i <= 2*k) { ^ input/code.cpp:17:5: error: 'cout' was not declared in this scope cout << (pos1%2 ? 'A' : 'B') << endl;...
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 { } }