Borderou de evaluare (job #740122)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Minnrk (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 oct. 2023 17:42:58 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:10: error: expected unqualified-id before string constant
5 | ifstream("minnrk.in");
| ^~~~~~~~~~~
main.cpp:5:10: error: expected ')' before string constant
5 | ifstream("minnrk.in");
| ~^~~~~~~~~~~
| )
main.cpp:6:10: error: expected unqualified-id before string constant
6 | ofstream("minnrk.out");
| ^~~~~~~~~~~~
main.cpp:6:10: error: expected ')' before string constant
6 | ofstream("minnrk.out");
| ~^~~~~~~~~~~~
| )
main.cpp: In function 'int main()':
main.cpp:11:5: error: 'in' was not declared in this scope; did you mean 'int'?
11 | in>>c;
| ^~
| int
main.cpp:15:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
15 | for(int i=0;i<strlen(c);i++)
| ~^~~~~~~~~~
main.cpp:23:13: error: 'out' was not declared in this scope
23 | out<<i;
| ^~~
main.cpp:33:13: error: 'out' was not declared in this scope
33 | out<<i;
| ^~~
main.cpp:12:11: warning: unused variable 'Min' [-Wunused-variable]
12 | int n,Min=10;
| ^~~