# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2371 |
2013-07-21T04:23:00 Z |
swh0329 |
개미 (GA4_ant) |
C++ |
|
0 ms |
0 KB |
#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;
}
Compilation message
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