Borderou de evaluare (job #780594)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Monotonă (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 26 iun. 2024 12:41:38 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:15: warning: missing terminating " character
5 | ifstream cin ("monotona.in);
| ^
main.cpp:5:15: error: missing terminating " character
5 | ifstream cin ("monotona.in);
| ^~~~~~~~~~~~~~
main.cpp:8:15: error: expected ',' or '...' before '(' token
8 | ofstream cout ("monotona.out");
| ^
main.cpp:8:31: error: expected ')' before ';' token
8 | ofstream cout ("monotona.out");
| ^
| )
main.cpp:5:14: note: to match this '('
5 | ifstream cin ("monotona.in);
| ^
main.cpp: In function 'int main()':
main.cpp:16:5: error: invalid operands of types 'std::ifstream(std::ofstream)' {aka 'std::basic_ifstream<char>(std::basic_ofstream<char>)'} and 'int' to binary 'operator>>'
16 | cin >> n;
| ~~~ ^~ ~
| | |
| | int
| std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}
main.cpp:24:5: error: invalid operands of types 'std::ifstream(std::ofstream)' {aka 'std::basic_ifstream<char>(std::basic_ofstream<char>)'} and 'int' to binary 'operator>>'
24 | cin >> v[i];
| ~~~ ^~ ~~~~
| | |
| | int
| std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}
main.cpp:37:11: error: 'cout' was not declared in this scope
37 | cout << "da";
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 | using namespace std;
main.cpp:53:11: error: 'cout' was not declared in this scope
53 | cout << "da";
| ^~~~
main.cpp:53:11: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:67:11: error: 'cout' was not declared in this scope
67 | cout << "da";
| ^~~~
main.cpp:67:11: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:73:9: error: 'cout' was not declared in this scope
73 | cout << "nu";
| ^~~~
main.cpp:73:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:13:8: warning: unused variable 'a' [-Wunused-variable]
13 | { int a, b, n, c = 0, i, y = 0;