Borderou de evaluare (job #701667)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Tramvai (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 6 mar. 2023 16:09:12 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:6:5: error: 'fin' was not declared in this scope; did you mean 'sin'?
6 | fin>>a>>b>>k;
| ^~~
| sin
main.cpp:6:10: error: 'a' was not declared in this scope
6 | fin>>a>>b>>k;
| ^
main.cpp:6:13: error: 'b' was not declared in this scope
6 | fin>>a>>b>>k;
| ^
main.cpp:6:16: error: 'k' was not declared in this scope
6 | fin>>a>>b>>k;
| ^
main.cpp:17:18: error: invalid operands of types 'int [1000]' and 'int' to binary 'operator%'
17 | s=(s*10+v%10)*10+b%10;
| ~^~~
| | |
| | int
| int [1000]
main.cpp:19:5: error: 'fout' was not declared in this scope
19 | fout << "s" << endl;
| ^~~~
main.cpp:5:9: warning: unused variable 'i' [-Wunused-variable]
5 | int i,n,t,v[1000],s,S;
| ^
main.cpp:5:11: warning: unused variable 'n' [-Wunused-variable]
5 | int i,n,t,v[1000],s,S;
| ^
main.cpp:5:13: warning: unused variable 't' [-Wunused-variable]
5 | int i,n,t,v[1000],s,S;
| ^