Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68402 何思佳 13求n个数的最小值 C++ Compile Error 0 MS 0 KB 216 2024-03-23 11:43:27

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int mx=210000000; int tz; int n; cin>>n; for(int i=1;i<=7;i++){ cin>>tz; if(tz<mx){ mx=tz } } printf("%d\n %d",mx); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:3: error: expected ';' before '}' token
   }
   ^
Main.cc:14:24: warning: format '%d' expects a matching 'int' argument [-Wformat=]
     printf("%d\n %d",mx);
                        ^