제출 #796846

#제출 시각아이디문제언어결과실행 시간메모리
796846raphaelpZapina (COCI20_zapina)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; int main() { int N; cin>>N; long long tot = 1; for(int i = 0; i < N; i++) { tot *= N; tot = tot%1000000007; }    vector < vector < long long>> tab (N+1, vector < long long> (N, 0)); tab[1][0] = 1; for (long long i = 1; i < N; i++) { for (long long j = 0; j <= N; j++) { if (tab[i][j] == 0) break; long long mult = 1; for (long long p = 0; p <= min(i, N-j); p++) { tab[i+1][j+p] += tab[i][j]*mult; tab[i+1][j+p] = tab[i+1][j+p]%1000000007; mult *= N-j-p; mult = mult%1000000007; } } } tot -= tab[N][N]; tot = tot%1000000007;    cout<<tot;}

컴파일 시 표준 에러 (stderr) 메시지

zapina.cpp:11:2: error: extended character   is not valid in an identifier
   11 |     vector < vector < long long>> tab (N+1, vector < long long> (N, 0));
      |  ^
zapina.cpp:11:5: error: extended character   is not valid in an identifier
   11 |     vector < vector < long long>> tab (N+1, vector < long long> (N, 0));
      |    ^
zapina.cpp:27:2: error: extended character   is not valid in an identifier
   27 |     cout<<tot;}
      |  ^
zapina.cpp:27:5: error: extended character   is not valid in an identifier
   27 |     cout<<tot;}
      |    ^
zapina.cpp: In function 'int main()':
zapina.cpp:11:2: error: '\U000000a0' was not declared in this scope
   11 |     vector < vector < long long>> tab (N+1, vector < long long> (N, 0));
      |  ^
zapina.cpp:12:5: error: 'tab' was not declared in this scope; did you mean 'tan'?
   12 |     tab[1][0] = 1;
      |     ^~~
      |     tan
zapina.cpp:27:4: error: expected ';' before '\U000000a0cout'
   27 |     cout<<tot;}
      |   ^~~~~~
      |   ;