记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:29:21: error: expected '}' at end of input
     printf("%d",ans);
                     ^
foo.cc:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&N);
     ~~~~~^~~~~~~~~
foo.cc:9:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d",&a[i]);
         ~~~~~^~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1177 交换位置
语言
C++
递交时间
2021-06-27 17:39:22
评测时间
2021-06-27 17:39:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes