Borderou de evaluare (job #775703)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Peridia (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 apr. 2024 15:13:31 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:31: error: expected ')' before ';' token
8 | ifstream fin("peridia.in)";
| ~ ^
| )
main.cpp:10:1: error: 'oput' was not declared in this scope
10 | oput
| ^~~~
main.cpp:12:10: error: 'N' was not declared in this scope
12 | fin >> N >> X >> Y >> Z >> K;
| ^
main.cpp:12:15: error: 'X' was not declared in this scope
12 | fin >> N >> X >> Y >> Z >> K;
| ^
main.cpp:12:20: error: 'Y' was not declared in this scope
12 | fin >> N >> X >> Y >> Z >> K;
| ^
main.cpp:12:25: error: 'Z' was not declared in this scope
12 | fin >> N >> X >> Y >> Z >> K;
| ^
main.cpp:12:30: error: 'K' was not declared in this scope
12 | fin >> N >> X >> Y >> Z >> K;
| ^
main.cpp:18:12: error: 'mutari' was not declared in this scope
18 | fin >> mutari[i];
| ^~~~~~
main.cpp:24:7: error: 'tabla' was not declared in this scope
24 | tabla[i][j] = 0;
| ^~~~~
main.cpp:35:21: error: 'mutari' was not declared in this scope
35 | int deltaX = dx[mutari[i] - 'N'];
| ^~~~~~
main.cpp:45:5: error: 'tabla' was not declared in this scope
45 | tabla[zarY][zarX] += zarJos;
| ^~~~~
main.cpp:48:3: error: 'set' was not declared in this scope
48 | set<int> numere;
| ^~~
main.cpp:3:1: note: 'std::set' is defined in header '<set>'; did you forget to '#include <set>'?
2 | #include <fstream>
+++ |+#include <set>
3 |
main.cpp:48:7: error: expected primary-expression before 'int'
48 | set<int> numere;
| ^~~
main.cpp:51:11: error: 'tabla' was not declared in this scope
51 | if (tabla[i][j] != 0) {
| ^~~~~
main.cpp:52:9: error: 'numere' was not declared in this scope
52 | numere.insert(tabla[i][j]);