| Task: | Merkkijono |
| Sender: | Aaron Äärelä |
| Submission time: | 2020-02-09 13:08:06 +0200 |
| Language: | C++ (C++11) |
| Status: | COMPILE ERROR |
Compiler report
input/code.cpp: In function 'int main()':
input/code.cpp:6:2: error: 't' was not declared in this scope
t[] = {1, 3, 1, 5, 1, 3, 1, 7};
^
input/code.cpp:6:4: error: expected primary-expression before ']' token
t[] = {1, 3, 1, 5, 1, 3, 1, 7};
^Code
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >>n;
t[] = {1, 3, 1, 5, 1, 3, 1, 7};
for(int i = 0; i < n; i++){
cout << t[i % 8] << ' ';
}
return 0;
}
