제출 #1282019

#제출 시각아이디문제언어결과실행 시간메모리
1282019ojiscanf 함수 5 (BSC_0_7)C++20
컴파일 에러
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;
}

컴파일 시 표준 에러 (stderr) 메시지

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