Borderou de evaluare (job #775711)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Peridia (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 apr. 2024 15:45:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:3: error: 'cin' was not declared in this scope
12 | cin >> N >> X >> Y >> Z >> K;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:75:3: error: 'sort' was not declared in this scope; did you mean 'short'?
75 | sort(numbers, numbers + count);
| ^~~~
| short
main.cpp:79:5: error: 'cout' was not declared in this scope
79 | cout << numbers[i] << " ";
| ^~~~
main.cpp:79:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?