Borderou de evaluare (job #2752048)
| Utilizator | Data | 16 mai 2021 15:25:12 | |
|---|---|---|---|
| Problema | Farfurii | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long unsigned int cmm(int)':
main.cpp:10:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while ((i * (i - 1) / 2) < N)
~~~~~~~~~~~~~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:21:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(K == 0)
^~
main.cpp:24:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
return 0;
^~~~~~
main.cpp: At global scope:
main.cpp:27:33: error: 'K' was not declared in this scope
unsigned long long m = cmm(K);
^
main.cpp:29:5: error: expected unqualified-id before 'if'
if (K == (m * (m - 1)) / 2)
^~
main.cpp:38:5: error: expected unqualified-id before '--' token
--m;
^~
main.cpp:44:5: error: expected unqualified-id before 'for'
for (unsigned long long i = 1; i <= N - m - 1; ++i)
^~~
main.cpp:44:37: error: 'i' does not name a type
for (unsigned long long i = 1; i <= N - m - 1; ++i)
^
main.cpp:44:53: error: expected unqualified-id before '++' token
for (unsigned long long i = 1; i <= N - m - 1; ++i)
^~
main.cpp:47:5: error: 'g' does not name a type
g << N - (((m) * (m + 1)) / 2) + K << " ";
^
main.cpp:49:5: error: expected unqualified-id before 'for'
for (unsigned long long i = N; i >= N - m; --i)
^~~
main.cpp:49:37: error: 'i' does not name a type
for (unsigned long long i = N; i >= N - m; --i)
^
main.cpp:49:49: error: expected unqualified-id before '--' token
for (unsigned long long i = N; i >= N - m; --i)
^~
main.cpp:53:5: error: expected unqualified-id before 'return'
return 0;
^~~~~~
main.cpp:54:1: error: expected declaration before '}' token
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
