답안 #162709

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
162709 2019-11-09T12:37:17 Z luciocf Drzava (COCI15_drzava) C++14
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>

using namespace std;

int main(void
{
	int n, k;
    
    scanf("%d %d", &n, &k);
    
    for (int i = 1; i <= n; i++)
    {
    	int bla, blabla, blablabla;
        scanf("%d %d %d", &bla, &blabla, &blablabla);
	}
    
    printf("%.10lf\n", sqrt(k/3 + 1));
}

Compilation message

drzava.cpp:5:10: error: cannot declare '::main' to be a global variable
 int main(void
          ^~~~
drzava.cpp:7:2: error: compound literal of non-object type 'void'
  int n, k;
  ^~~
drzava.cpp:5:10: error: expected primary-expression before 'void'
 int main(void
          ^~~~