Borderou de evaluare (job #718301)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Magic1 (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 7 mai 2023 12:30:08 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
2 | #include fstream
| ^~~~~~~
main.cpp: In function 'int main()':
main.cpp:8:5: error: 'ifstream' was not declared in this scope
8 | ifstream cin(magic1.in);
| ^~~~~~~~
main.cpp:1:1: note: 'std::ifstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
+++ |+#include <fstream>
1 |
main.cpp:9:5: error: 'ofstream' was not declared in this scope
9 | ofstream cout(magic1.out);
| ^~~~~~~~
main.cpp:9:5: note: 'std::ofstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
main.cpp:12:5: error: 'cinn' was not declared in this scope
12 | cinn;
| ^~~~
main.cpp:13:5: error: 'cin' was not declared in this scope
13 | cin.get(c);
| ^~~
main.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 |
main.cpp:14:15: error: 'n2' was not declared in this scope; did you mean 'n'?
14 | for(i=1;i=n2;i++)
| ^~
| n
main.cpp:17:17: error: lvalue required as left operand of assignment
17 | if(c='0'&&c='9')
| ~~~^~~
main.cpp:19:17: error: lvalue required as left operand of assignment
19 | if('a'=c&&c='z'){
| ~^~~
main.cpp:21:13: error: 'coutc' was not declared in this scope
21 | coutc;
| ^~~~~
main.cpp:24:5: error: 'coutendl' was not declared in this scope
24 | coutendl;
| ^~~~~~~~
main.cpp:25:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
25 | for(i=1;i=9;i++)
| ~^~
main.cpp:27:16: error: expected ')' before numeric constant
27 | if(v[i]0)
| ~ ^
| )
main.cpp:29:13: error: 'couti' was not declared in this scope
29 | couti;
| ^~~~~
main.cpp:34:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]