Borderou de evaluare (job #621822)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Furnica (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 dec. 2021 12:41:45 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:5: error: reference to 'cin' is ambiguous
13 | cin >> n;
| ^~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/i686-pc-linux-gnu/bits/stdc++.h:75,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/iostream:60:18: note: candidates are: 'std::istream std::cin'
60 | extern istream cin; /// Linked to standard input
| ^~~
main.cpp:6:10: note: 'std::ifstream cin'
6 | ifstream cin ("furnica.in");
| ^~~
main.cpp:21:5: error: reference to 'cin' is ambiguous
21 | cin >> k;
| ^~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/i686-pc-linux-gnu/bits/stdc++.h:75,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/iostream:60:18: note: candidates are: 'std::istream std::cin'
60 | extern istream cin; /// Linked to standard input
| ^~~
main.cpp:6:10: note: 'std::ifstream cin'
6 | ifstream cin ("furnica.in");
| ^~~
main.cpp:23:17: error: expected unqualified-id before '=' token
23 | for (int ll = 0; ll < k; ll++)
| ^
main.cpp:23:17: error: expected ';' before '=' token
main.cpp:23:17: error: expected primary-expression before '=' token
main.cpp:3:12: error: expected primary-expression before 'long'
3 | #define ll long long
| ^~~~
main.cpp:23:22: note: in expansion of macro 'll'
23 | for (int ll = 0; ll < k; ll++)
| ^~
main.cpp:23:21: error: expected ')' before 'long'
23 | for (int ll = 0; ll < k; ll++)
| ~ ^
| )
main.cpp:3:17: error: 'long int' is not a template
3 | #define ll long long
| ^~~~
main.cpp:23:22: note: in expansion of macro 'll'
23 | for (int ll = 0; ll < k; ll++)
| ^~
main.cpp:23:27: error: the value of 'k' is not usable in a constant expression
23 | for (int ll = 0; ll < k; ll++)
| ^
main.cpp:9:59: note: 'int k' is not const
9 | int a[101][101] , di[10] , dj[10] , b[101][101] , n , s , k , val;
| ^