Submission #2371

#TimeUsernameProblemLanguageResultExecution timeMemory
2371swh0329개미 (GA4_ant)C++98
Compilation error
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; }

Compilation message (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