Task: | Säähavainnot |
Sender: | Yamaxanadu |
Submission time: | 2023-11-03 09:13:24 +0200 |
Language: | C++ (C++11) |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:16:86: error: expected ';' before string constant 16 | cout << v[23] << " " << v[23] << " " << v[23] << " " << v[23] << " " << v[23] " "; | ^~~~ | ;
Code
#include<bits/stdc++.h> using namespace std; int main() { int n; double a; vector<double> v; cin >> n; for (int i = 0; i<n; i++) { v = {}; for (int j = 1; j <= 24; j++) { cin >> a; v.push_back(a); } cout << v[23] << " " << v[23] << " " << v[23] << " " << v[23] << " " << v[23] " "; for (int j = 1; j <= 7; j++) { cout << "? "; } cout << "\n"; } }