Problem | maxavg |
---|---|
User | wongyikai |
Submission Time | 2024-12-10 23:07:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
maxavg.cpp: In function ‘int main()’:
maxavg.cpp:5:2: error: ‘ll’ was not declared in this scope
5 | ll ans = 0;
| ^~
maxavg.cpp:6:4: error: expected ‘;’ before ‘n’
6 | ll n,m;
| ^~
| ;
maxavg.cpp:7:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | cin >> n >> m;
| ^
| yn
maxavg.cpp:7:14: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
7 | cin >> n >> m;
| ^
| tm
maxavg.cpp:8:28: error: expected ‘;’ before ‘temp’
8 | for (int i=0;i<n*m;i++) ll temp, cin >> temp, ans = max(ans,temp);
| ^~~~~
| ;
maxavg.cpp:9:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
9 | cout << ans;
| ^~~
| abs