Borderou de evaluare (job #584337)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Pav | Compilator | cpp-32 |
Rundă | lasm_03_03_2021_cl11_12 | Status | evaluat |
Dată | 3 mar. 2021 19:56:08 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve(int, int, int, int, int, int)':
main.cpp:19:4: error: 'v' was not declared in this scope
19 | v[linie][col+1] = k;
| ^
main.cpp:26:4: error: 'v' was not declared in this scope
26 | v[linie][col] = k;
| ^
main.cpp:33:4: error: 'v' was not declared in this scope
33 | v[linie][col] = k;
| ^
main.cpp:40:4: error: 'v' was not declared in this scope
40 | v[linie][col] = k;
| ^
main.cpp: In function 'int main()':
main.cpp:51:2: error: reference to 'cin' is ambiguous
51 | cin >> n;
| ^~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/9.3.0/include/g++-v9/i686-pc-linux-gnu/bits/stdc++.h:75,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/9.3.0/include/g++-v9/iostream:60:18: note: candidates are: 'std::istream std::cin'
60 | extern istream cin; /// Linked to standard input
| ^~~
main.cpp:5:10: note: 'std::ifstream cin'
5 | ifstream cin ("pav.in");
| ^~~
main.cpp:52:2: error: reference to 'cin' is ambiguous
52 | cin >> x >> y;
| ^~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/9.3.0/include/g++-v9/i686-pc-linux-gnu/bits/stdc++.h:75,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/9.3.0/include/g++-v9/iostream:60:18: note: candidates are: 'std::istream std::cin'
60 | extern istream cin; /// Linked to standard input
| ^~~
main.cpp:5:10: note: 'std::ifstream cin'
5 | ifstream cin ("pav.in");
| ^~~
main.cpp:55:36: error: reference to 'cout' is ambiguous
55 | for (int j=1; j<=powers[n]; j++) cout << v[i][j] << " "; cout << "\n";
| ^~~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/9.3.0/include/g++-v9/i686-pc-linux-gnu/bits/stdc++.h:75,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/9.3.0/include/g++-v9/iostream:61:18: note: candidates are: 'std::ostream std::cout'
61 | extern ostream cout; /// Linked to standard output
| ^~~~
main.cpp:6:10: note: 'std::ofstream cout'
6 | ofstream cout ("pav.out");
| ^~~~
main.cpp:55:44: error: 'v' was not declared in this scope
55 | for (int j=1; j<=powers[n]; j++) cout << v[i][j] << " "; cout << "\n";
| ^