F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_30250373_30339.cpp:1:474: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/stdio.h>in: Invalid argument
 #include <stdio.h>int main(){    int n,i,t1,t2;    scanf("%d",&n);    while(n--)    {        int sum=2;  //直接让sum=2代表卡片2的位置。        int m;        scanf("%d",&m);        for(i=1;i<=m;i++)        {            scanf("%d%d",&t1,&t2);            if(t2==sum)  //  相等的话就交换                sum=t1;            else    if(t1==sum)                sum=t2;  //   同上        }        printf("%d\n",sum);  //换完后就得到最后的位置。    }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
compilation terminated.


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-16 23:46:15, Gzip enabled