Submission #1898

# Submission time Handle Problem Language Result Execution time Memory
1898 2013-07-19T08:43:08 Z gijun0102 개미 (GA4_ant) C++
Compilation error
0 ms 0 KB
1 
1 2 3
18
ADHOC:prob rootid$ cat prob.cpp 
#include<cstdio>
int min(int a,int b){return a<b?a:b;}

int main(){
	int a,b,c,t,i;
	scanf("%d",&t);
	for(i=0;i<t;i++){
		scanf("%d%d%d",&a,&b,&c);
		printf("%d\n",min(min((a+b)*(a+b)+c*c,(a+c)*(a+c)+b*b),(b+c)*(b+c)+a*a));
	}
}

Compilation message

ant.cpp:1: error: expected unqualified-id before numeric constant
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/x86_64-redhat-linux/bits/c++config.h:1214: error: '__gnu_debug_def' is not a namespace-name
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/x86_64-redhat-linux/bits/c++config.h:1214: error: expected namespace-name before ';' token