← Back to Challenge List

Submission #98249

上傳編號98249
上傳時間2020-05-20 10:54:33
題目 一中各表
使用者 anonymous
總得分 0, CE in 0 ms
# State Runtime Memory
0 CE 0 ms 0
1 CE 0 ms 0
2 CE 0 ms 0
3 CE 0 ms 0
4 CE 0 ms 0
Judge Information
./test.cpp: In function 'int main()':
./test.cpp:6:21: error: 'swap' was not declared in this scope
if(a<b){swap(a,b);}
^
./test.cpp:13:17: error: 'i' was not declared in this scope
printf("%d",i);
^
./test.cpp:5:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&a,&b);
^
./test.cpp:14:20: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
system("pause");
^