Submission #4971

#TimeUsernameProblemLanguageResultExecution timeMemory
4971lingxiang개미 (GA4_ant)C++98
Compilation error
0 ms0 KiB
#include<stdio.h> ? int main() { ??long long int a=0,b=0,c=0; ??int T; 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 (stderr)

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]