Borderou de evaluare (job #610314)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Aritmetica (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 16 oct. 2021 11:02:32 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:1: error: 'file' does not name a type
10 | file reading writing :
| ^~~~
main.cpp:11:45: error: '__fname' was not declared in this scope; did you mean '__tzname'?
11 | string __fname = "aritmetica"; ifstream in (__fname + ".in"); ofstream out (__fname + ".out");
| ^~~~~~~
| __tzname
main.cpp:11:77: error: '__fname' was not declared in this scope; did you mean '__tzname'?
11 | string __fname = "aritmetica"; ifstream in (__fname + ".in"); ofstream out (__fname + ".out");
| ^~~~~~~
| __tzname
main.cpp: In function 'void solve()':
main.cpp:55:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
55 | for(int i = 0; i < a.size(); i += 2){
| ~~^~~~~~~~~~
main.cpp:66:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
66 | for(int i = 0; i < d.size();i++){
| ~~^~~~~~~~~~
main.cpp:69:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
69 | for(int i = d.size(); i < a.size(); i++){
| ~~^~~~~~~~~~