Task: | Säähavainnot |
Sender: | Laserr |
Submission time: | 2023-11-05 14:29:44 +0200 |
Language: | C++ (C++11) |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:22:10: error: expected '}' at end of input 22 | } | ^ input/code.cpp:16:12: note: to match this '{' 16 | int main() { | ^
Code
#include <iostream>using namespace std;double d[24];void solve() {for (int i = 0; i < 24; i++) cin >> d[i];for (int i = 0; i < 12; i++) {if (abs(d[0] - d[23]) > 2) cout << "? ";cout << d[23] + (d[i] - d[0]) << " ";}cout << endl;}int main() {int n;cin >> n;while (n) {n--;solve();}