답안 #4973

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
4973 2014-01-23T16:34:12 Z lingxiang 개미 (GA4_ant) C++
컴파일 오류
0 ms 0 KB
#include<stdio.h>
?
int main()
{
??long long int a=0,b=0,c=0;
??int T=0;
  scanf("%d",&T);
??for(int i=0;i<T;i++){
??scanf("%lld %lld %lld",&a,&b,&c);
??if(a>b) a^=b^=a^=b;
??if(b>c) b^=c^=b^=c;
??printf("%lld\n",(long long int)(a+b)*(a+b)+c*c);
??}
??return 0;
}

Compilation message

ant.cpp:2:1: error: stray '\302' in program
ant.cpp:2:1: error: stray '\240' in program
ant.cpp:5:1: error: stray '\302' in program
ant.cpp:5:1: error: stray '\240' in program
ant.cpp:5:1: error: stray '\302' in program
ant.cpp:5:1: error: stray '\240' in program
ant.cpp:6:1: error: stray '\302' in program
ant.cpp:6:1: error: stray '\240' in program
ant.cpp:6:1: error: stray '\302' in program
ant.cpp:6:1: error: stray '\240' in program
ant.cpp:8:1: error: stray '\302' in program
ant.cpp:8:1: error: stray '\240' in program
ant.cpp:8:1: error: stray '\302' in program
ant.cpp:8:1: error: stray '\240' in program
ant.cpp:9:1: error: stray '\302' in program
ant.cpp:9:1: error: stray '\240' in program
ant.cpp:9:1: error: stray '\302' in program
ant.cpp:9:1: error: stray '\240' in program
ant.cpp:10:1: error: stray '\302' in program
ant.cpp:10:1: error: stray '\240' in program
ant.cpp:10:1: error: stray '\302' in program
ant.cpp:10:1: error: stray '\240' in program
ant.cpp:11:1: error: stray '\302' in program
ant.cpp:11:1: error: stray '\240' in program
ant.cpp:11:1: error: stray '\302' in program
ant.cpp:11:1: error: stray '\240' in program
ant.cpp:12:1: error: stray '\302' in program
ant.cpp:12:1: error: stray '\240' in program
ant.cpp:12:1: error: stray '\302' in program
ant.cpp:12:1: error: stray '\240' in program
ant.cpp:13:1: error: stray '\302' in program
ant.cpp:13:1: error: stray '\240' in program
ant.cpp:13:1: error: stray '\302' in program
ant.cpp:13:1: error: stray '\240' in program
ant.cpp:14:1: error: stray '\302' in program
ant.cpp:14:1: error: stray '\240' in program
ant.cpp:14:1: error: stray '\302' in program
ant.cpp:14:1: error: stray '\240' in program
ant.cpp: In function 'int main()':
ant.cpp:10:23: warning: operation on 'a' may be undefined [-Wsequence-point]
ant.cpp:11:23: warning: operation on 'b' may be undefined [-Wsequence-point]
ant.cpp:7:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
ant.cpp:9:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]