Submission #1282019

#TimeUsernameProblemLanguageResultExecution timeMemory
1282019ojiscanf 함수 5 (BSC_0_7)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; int main(){ double a,b; cin >> a >> b; double average = (a + b)/2 cout << average << endl; }

Compilation message (stderr)

scanf5.cpp: In function 'int main()':
scanf5.cpp:7:9: error: expected ',' or ';' before 'cout'
    7 |         cout << average << endl;
      |         ^~~~