제출 #2371

#제출 시각아이디문제언어결과실행 시간메모리
2371swh0329개미 (GA4_ant)C++98
컴파일 에러
0 ms0 KiB
#include <stdio.h>
#define Min(x,y) x<y?x:y
using namespace std;
int main()
{
    int t;
    int a, b, c, m;
    scanf("%d", &t);
    while(t>0)
    {
        t--;
        m=999999;
        scanf("%d %d %d", &a, &b, &c);
        m=Min(m, (a+b)*(a+b)+(c*c));
        m=Min(m, (a+c)*(a+c)+(b*b));
        m=Min(m, (a*a)+(b+c)*(b+c);
        m+=c;
        printf("%d\n", m);
    }
    return 0;
}

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

ant.cpp:21:1: error: unterminated argument list invoking macro "Min"
ant.cpp: In function 'int main()':
ant.cpp:16: error: 'Min' was not declared in this scope
ant.cpp:16: error: expected `;' at end of input
ant.cpp:16: error: expected `}' at end of input
ant.cpp:16: error: expected `}' at end of input