Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86312 李雨昊 二维数组的最大值与最小值 C++ Compile Error 0 MS 0 KB 650 2024-07-24 15:27:11

Tests(0/0):


Code:

#include<list> #include<queue> #include<stack> #include<cmath> #include<cstdio> #include<limits> #include<cstring> #include<iomanip> #include<conio.h> #include<iostream> #include<algorithm> #include<windows.h> #include<bits/stdc++.h> using namespace std; int main() { int n, mxx = 0, ndd = 100000; cin >> n; int a[11][11]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { cin >> a[i][j]; } } for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (mxx < a[i][j]) { mxx = a[i][j]; } if (ndd > a[i][j]) { ndd = a[i][j]; } } } cout << mxx << " " << ndd; }


Run Info:

Main.cc:9:18: fatal error: conio.h: No such file or directory
 #include
                  ^
compilation terminated.