Borderou de evaluare (job #769813)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Minnrk (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 mar. 2024 12:59:16 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:16: error: 'INT_MAX' was not declared in this scope
8 | int n,minn=INT_MAX,k,i,r=0;
| ^~~~~~~
main.cpp:2:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
1 | #include <fstream>
+++ |+#include <climits>
2 | std::ifstream in("minnrk.in");
main.cpp:9:12: error: 'k' was not declared in this scope
9 | in>>n>>k;
| ^
main.cpp:19:5: error: 'r' was not declared in this scope
19 | r+=minn;
| ^
main.cpp:22:5: error: 'i' was not declared in this scope
22 | i=0;
| ^