Borderou de evaluare (job #805709)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Trei Divizori (clasa a 6-a) | Compilator | cpp-32 |
Rundă | oli_cntv_9 | Status | evaluat |
Dată | 24 ian. 2025 09:26:07 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:18: error: missing terminating > character
2 | #include <fstream
| ^
main.cpp:5:15: warning: missing terminating " character
5 | ifstream fcin("treidiv.in);
| ^
main.cpp:5:15: error: missing terminating " character
5 | ifstream fcin("treidiv.in);
| ^~~~~~~~~~~~~
main.cpp:6:15: error: expected ',' or '...' before '(' token
6 | ofstream fcout("treidiv.out");
| ^
main.cpp:6:30: error: expected ')' before ';' token
6 | ofstream fcout("treidiv.out");
| ^
| )
main.cpp:5:14: note: to match this '('
5 | ifstream fcin("treidiv.in);
| ^
main.cpp:7:19: error: expected ',' or ';' before 'x'
7 | int n, a, i, nd=1 x, d=2, k=0, b;
| ^
main.cpp: In function 'int main()':
main.cpp:11:9: error: invalid operands of types 'std::ifstream(std::ofstream)' {aka 'std::basic_ifstream<char>(std::basic_ofstream<char>)'} and 'int' to binary 'operator>>'
11 | fcin>>n;
| ~~~~^~~
| | |
| | int
| std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}
main.cpp:14:13: error: invalid operands of types 'std::ifstream(std::ofstream)' {aka 'std::basic_ifstream<char>(std::basic_ofstream<char>)'} and 'int' to binary 'operator>>'
14 | fcin>>a;
| ~~~~^~~
| | |
| | int
| std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}
main.cpp:16:9: error: 'b' was not declared in this scope
16 | b=a;
| ^
main.cpp:17:15: error: 'd' was not declared in this scope; did you mean 'nd'?
17 | while(d*d<=b)
| ^
| nd
main.cpp:19:13: error: 'x' was not declared in this scope
19 | x=0;
| ^
main.cpp:37:13: error: 'k' was not declared in this scope
37 | k++;
| ^
main.cpp:39:9: error: 'fcout' was not declared in this scope
39 | fcout<<k;