# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
7996 | 2014-08-27T05:20:56 Z | lingxiang | 공주님의 정원 (KOI11_flower) | C++ | Compilation error |
0 ms | 0 KB |
#include<stdio.h> ? int N; int date[14]={0,31,59,90,120,151,181,212,243,273,304,334,}; int T[400]; int df(int x,int y){return date[x-1]+y;} int ans; ? int input(){ ????scanf("%d",&N); ????int a,b,c,d; ????for(int i=0;i<N;i++){ ????????scanf("%d %d %d %d",&a,&b,&c,&d); ????????if(T[df(a,b)]<df(c,d))T[df(a,b)]=df(c,d); ????} ????return 0; } ? int solve(){ ????int mi=0; ????int max=0; ????for(int i=0;i<df(3,1);i++){ ????????if(T[i]>max){mi=i,max=T[i];} ????} ????int ni=0,nmax=0; ????while(nmax<df(11,30)){ ????????for(int i=mi;i<=max;i++){ ????????????if(T[i]>nmax){ni=i,nmax=T[i];} ????????} if(max>=nmax){ ans=0; return 0; } ????????ans++; ????????mi=ni; ????????max=nmax; ????} ????return 0; } ? int output(){ ????if(ans==0) puts("0"); ????else ????printf("%d",ans+1); ????return 0; } ? int main(){ ????input(); ????solve(); ????output(); ????return 0; }
Compilation message
flower.cpp:2:1: error: stray '\302' in program flower.cpp:2:1: error: stray '\240' in program flower.cpp:8:1: error: stray '\302' in program flower.cpp:8:1: error: stray '\240' in program flower.cpp:10:1: error: stray '\302' in program flower.cpp:10:1: error: stray '\240' in program flower.cpp:10:1: error: stray '\302' in program flower.cpp:10:1: error: stray '\240' in program flower.cpp:10:1: error: stray '\302' in program flower.cpp:10:1: error: stray '\240' in program flower.cpp:10:1: error: stray '\302' in program flower.cpp:10:1: error: stray '\240' in program flower.cpp:11:1: error: stray '\302' in program flower.cpp:11:1: error: stray '\240' in program flower.cpp:11:1: error: stray '\302' in program flower.cpp:11:1: error: stray '\240' in program flower.cpp:11:1: error: stray '\302' in program flower.cpp:11:1: error: stray '\240' in program flower.cpp:11:1: error: stray '\302' in program flower.cpp:11:1: error: stray '\240' in program flower.cpp:12:1: error: stray '\302' in program flower.cpp:12:1: error: stray '\240' in program flower.cpp:12:1: error: stray '\302' in program flower.cpp:12:1: error: stray '\240' in program flower.cpp:12:1: error: stray '\302' in program flower.cpp:12:1: error: stray '\240' in program flower.cpp:12:1: error: stray '\302' in program flower.cpp:12:1: error: stray '\240' in program flower.cpp:13:1: error: stray '\302' in program flower.cpp:13:1: error: stray '\240' in program flower.cpp:13:1: error: stray '\302' in program flower.cpp:13:1: error: stray '\240' in program flower.cpp:13:1: error: stray '\302' in program flower.cpp:13:1: error: stray '\240' in program flower.cpp:13:1: error: stray '\302' in program flower.cpp:13:1: error: stray '\240' in program flower.cpp:13:1: error: stray '\302' in program flower.cpp:13:1: error: stray '\240' in program flower.cpp:13:1: error: stray '\302' in program flower.cpp:13:1: error: stray '\240' in program flower.cpp:13:1: error: stray '\302' in program flower.cpp:13:1: error: stray '\240' in program flower.cpp:13:1: error: stray '\302' in program flower.cpp:13:1: error: stray '\240' in program flower.cpp:14:1: error: stray '\302' in program flower.cpp:14:1: error: stray '\240' in program flower.cpp:14:1: error: stray '\302' in program flower.cpp:14:1: error: stray '\240' in program flower.cpp:14:1: error: stray '\302' in program flower.cpp:14:1: error: stray '\240' in program flower.cpp:14:1: error: stray '\302' in program flower.cpp:14:1: error: stray '\240' in program flower.cpp:14:1: error: stray '\302' in program flower.cpp:14:1: error: stray '\240' in program flower.cpp:14:1: error: stray '\302' in program flower.cpp:14:1: error: stray '\240' in program flower.cpp:14:1: error: stray '\302' in program flower.cpp:14:1: error: stray '\240' in program flower.cpp:14:1: error: stray '\302' in program flower.cpp:14:1: error: stray '\240' in program flower.cpp:15:1: error: stray '\302' in program flower.cpp:15:1: error: stray '\240' in program flower.cpp:15:1: error: stray '\302' in program flower.cpp:15:1: error: stray '\240' in program flower.cpp:15:1: error: stray '\302' in program flower.cpp:15:1: error: stray '\240' in program flower.cpp:15:1: error: stray '\302' in program flower.cpp:15:1: error: stray '\240' in program flower.cpp:16:1: error: stray '\302' in program flower.cpp:16:1: error: stray '\240' in program flower.cpp:16:1: error: stray '\302' in program flower.cpp:16:1: error: stray '\240' in program flower.cpp:16:1: error: stray '\302' in program flower.cpp:16:1: error: stray '\240' in program flower.cpp:16:1: error: stray '\302' in program flower.cpp:16:1: error: stray '\240' in program flower.cpp:18:1: error: stray '\302' in program flower.cpp:18:1: error: stray '\240' in program flower.cpp:20:1: error: stray '\302' in program flower.cpp:20:1: error: stray '\240' in program flower.cpp:20:1: error: stray '\302' in program flower.cpp:20:1: error: stray '\240' in program flower.cpp:20:1: error: stray '\302' in program flower.cpp:20:1: error: stray '\240' in program flower.cpp:20:1: error: stray '\302' in program flower.cpp:20:1: error: stray '\240' in program flower.cpp:21:1: error: stray '\302' in program flower.cpp:21:1: error: stray '\240' in program flower.cpp:21:1: error: stray '\302' in program flower.cpp:21:1: error: stray '\240' in program flower.cpp:21:1: error: stray '\302' in program flower.cpp:21:1: error: stray '\240' in program flower.cpp:21:1: error: stray '\302' in program flower.cpp:21:1: error: stray '\240' in program flower.cpp:22:1: error: stray '\302' in program flower.cpp:22:1: error: stray '\240' in program flower.cpp:22:1: error: stray '\302' in program flower.cpp:22:1: error: stray '\240' in program flower.cpp:22:1: error: stray '\302' in program flower.cpp:22:1: error: stray '\240' in program flower.cpp:22:1: error: stray '\302' in program flower.cpp:22:1: error: stray '\240' in program flower.cpp:23:1: error: stray '\302' in program flower.cpp:23:1: error: stray '\240' in program flower.cpp:23:1: error: stray '\302' in program flower.cpp:23:1: error: stray '\240' in program flower.cpp:23:1: error: stray '\302' in program flower.cpp:23:1: error: stray '\240' in program flower.cpp:23:1: error: stray '\302' in program flower.cpp:23:1: error: stray '\240' in program flower.cpp:23:1: error: stray '\302' in program flower.cpp:23:1: error: stray '\240' in program flower.cpp:23:1: error: stray '\302' in program flower.cpp:23:1: error: stray '\240' in program flower.cpp:23:1: error: stray '\302' in program flower.cpp:23:1: error: stray '\240' in program flower.cpp:23:1: error: stray '\302' in program flower.cpp:23:1: error: stray '\240' in program flower.cpp:24:1: error: stray '\302' in program flower.cpp:24:1: error: stray '\240' in program flower.cpp:24:1: error: stray '\302' in program flower.cpp:24:1: error: stray '\240' in program flower.cpp:24:1: error: stray '\302' in program flower.cpp:24:1: error: stray '\240' in program flower.cpp:24:1: error: stray '\302' in program flower.cpp:24:1: error: stray '\240' in program flower.cpp:25:1: error: stray '\302' in program flower.cpp:25:1: error: stray '\240' in program flower.cpp:25:1: error: stray '\302' in program flower.cpp:25:1: error: stray '\240' in program flower.cpp:25:1: error: stray '\302' in program flower.cpp:25:1: error: stray '\240' in program flower.cpp:25:1: error: stray '\302' in program flower.cpp:25:1: error: stray '\240' in program flower.cpp:26:1: error: stray '\302' in program flower.cpp:26:1: error: stray '\240' in program flower.cpp:26:1: error: stray '\302' in program flower.cpp:26:1: error: stray '\240' in program flower.cpp:26:1: error: stray '\302' in program flower.cpp:26:1: error: stray '\240' in program flower.cpp:26:1: error: stray '\302' in program flower.cpp:26:1: error: stray '\240' in program flower.cpp:27:1: error: stray '\302' in program flower.cpp:27:1: error: stray '\240' in program flower.cpp:27:1: error: stray '\302' in program flower.cpp:27:1: error: stray '\240' in program flower.cpp:27:1: error: stray '\302' in program flower.cpp:27:1: error: stray '\240' in program flower.cpp:27:1: error: stray '\302' in program flower.cpp:27:1: error: stray '\240' in program flower.cpp:27:1: error: stray '\302' in program flower.cpp:27:1: error: stray '\240' in program flower.cpp:27:1: error: stray '\302' in program flower.cpp:27:1: error: stray '\240' in program flower.cpp:27:1: error: stray '\302' in program flower.cpp:27:1: error: stray '\240' in program flower.cpp:27:1: error: stray '\302' in program flower.cpp:27:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:28:1: error: stray '\302' in program flower.cpp:28:1: error: stray '\240' in program flower.cpp:29:1: error: stray '\302' in program flower.cpp:29:1: error: stray '\240' in program flower.cpp:29:1: error: stray '\302' in program flower.cpp:29:1: error: stray '\240' in program flower.cpp:29:1: error: stray '\302' in program flower.cpp:29:1: error: stray '\240' in program flower.cpp:29:1: error: stray '\302' in program flower.cpp:29:1: error: stray '\240' in program flower.cpp:29:1: error: stray '\302' in program flower.cpp:29:1: error: stray '\240' in program flower.cpp:29:1: error: stray '\302' in program flower.cpp:29:1: error: stray '\240' in program flower.cpp:29:1: error: stray '\302' in program flower.cpp:29:1: error: stray '\240' in program flower.cpp:29:1: error: stray '\302' in program flower.cpp:29:1: error: stray '\240' in program flower.cpp:34:1: error: stray '\302' in program flower.cpp:34:1: error: stray '\240' in program flower.cpp:34:1: error: stray '\302' in program flower.cpp:34:1: error: stray '\240' in program flower.cpp:34:1: error: stray '\302' in program flower.cpp:34:1: error: stray '\240' in program flower.cpp:34:1: error: stray '\302' in program flower.cpp:34:1: error: stray '\240' in program flower.cpp:34:1: error: stray '\302' in program flower.cpp:34:1: error: stray '\240' in program flower.cpp:34:1: error: stray '\302' in program flower.cpp:34:1: error: stray '\240' in program flower.cpp:34:1: error: stray '\302' in program flower.cpp:34:1: error: stray '\240' in program flower.cpp:34:1: error: stray '\302' in program flower.cpp:34:1: error: stray '\240' in program flower.cpp:35:1: error: stray '\302' in program flower.cpp:35:1: error: stray '\240' in program flower.cpp:35:1: error: stray '\302' in program flower.cpp:35:1: error: stray '\240' in program flower.cpp:35:1: error: stray '\302' in program flower.cpp:35:1: error: stray '\240' in program flower.cpp:35:1: error: stray '\302' in program flower.cpp:35:1: error: stray '\240' in program flower.cpp:35:1: error: stray '\302' in program flower.cpp:35:1: error: stray '\240' in program flower.cpp:35:1: error: stray '\302' in program flower.cpp:35:1: error: stray '\240' in program flower.cpp:35:1: error: stray '\302' in program flower.cpp:35:1: error: stray '\240' in program flower.cpp:35:1: error: stray '\302' in program flower.cpp:35:1: error: stray '\240' in program flower.cpp:36:1: error: stray '\302' in program flower.cpp:36:1: error: stray '\240' in program flower.cpp:36:1: error: stray '\302' in program flower.cpp:36:1: error: stray '\240' in program flower.cpp:36:1: error: stray '\302' in program flower.cpp:36:1: error: stray '\240' in program flower.cpp:36:1: error: stray '\302' in program flower.cpp:36:1: error: stray '\240' in program flower.cpp:36:1: error: stray '\302' in program flower.cpp:36:1: error: stray '\240' in program flower.cpp:36:1: error: stray '\302' in program flower.cpp:36:1: error: stray '\240' in program flower.cpp:36:1: error: stray '\302' in program flower.cpp:36:1: error: stray '\240' in program flower.cpp:36:1: error: stray '\302' in program flower.cpp:36:1: error: stray '\240' in program flower.cpp:37:1: error: stray '\302' in program flower.cpp:37:1: error: stray '\240' in program flower.cpp:37:1: error: stray '\302' in program flower.cpp:37:1: error: stray '\240' in program flower.cpp:37:1: error: stray '\302' in program flower.cpp:37:1: error: stray '\240' in program flower.cpp:37:1: error: stray '\302' in program flower.cpp:37:1: error: stray '\240' in program flower.cpp:38:1: error: stray '\302' in program flower.cpp:38:1: error: stray '\240' in program flower.cpp:38:1: error: stray '\302' in program flower.cpp:38:1: error: stray '\240' in program flower.cpp:38:1: error: stray '\302' in program flower.cpp:38:1: error: stray '\240' in program flower.cpp:38:1: error: stray '\302' in program flower.cpp:38:1: error: stray '\240' in program flower.cpp:40:1: error: stray '\302' in program flower.cpp:40:1: error: stray '\240' in program flower.cpp:42:1: error: stray '\302' in program flower.cpp:42:1: error: stray '\240' in program flower.cpp:42:1: error: stray '\302' in program flower.cpp:42:1: error: stray '\240' in program flower.cpp:42:1: error: stray '\302' in program flower.cpp:42:1: error: stray '\240' in program flower.cpp:42:1: error: stray '\302' in program flower.cpp:42:1: error: stray '\240' in program flower.cpp:43:1: error: stray '\302' in program flower.cpp:43:1: error: stray '\240' in program flower.cpp:43:1: error: stray '\302' in program flower.cpp:43:1: error: stray '\240' in program flower.cpp:43:1: error: stray '\302' in program flower.cpp:43:1: error: stray '\240' in program flower.cpp:43:1: error: stray '\302' in program flower.cpp:43:1: error: stray '\240' in program flower.cpp:44:1: error: stray '\302' in program flower.cpp:44:1: error: stray '\240' in program flower.cpp:44:1: error: stray '\302' in program flower.cpp:44:1: error: stray '\240' in program flower.cpp:44:1: error: stray '\302' in program flower.cpp:44:1: error: stray '\240' in program flower.cpp:44:1: error: stray '\302' in program flower.cpp:44:1: error: stray '\240' in program flower.cpp:45:1: error: stray '\302' in program flower.cpp:45:1: error: stray '\240' in program flower.cpp:45:1: error: stray '\302' in program flower.cpp:45:1: error: stray '\240' in program flower.cpp:45:1: error: stray '\302' in program flower.cpp:45:1: error: stray '\240' in program flower.cpp:45:1: error: stray '\302' in program flower.cpp:45:1: error: stray '\240' in program flower.cpp:47:1: error: stray '\302' in program flower.cpp:47:1: error: stray '\240' in program flower.cpp:49:1: error: stray '\302' in program flower.cpp:49:1: error: stray '\240' in program flower.cpp:49:1: error: stray '\302' in program flower.cpp:49:1: error: stray '\240' in program flower.cpp:49:1: error: stray '\302' in program flower.cpp:49:1: error: stray '\240' in program flower.cpp:49:1: error: stray '\302' in program flower.cpp:49:1: error: stray '\240' in program flower.cpp:50:1: error: stray '\302' in program flower.cpp:50:1: error: stray '\240' in program flower.cpp:50:1: error: stray '\302' in program flower.cpp:50:1: error: stray '\240' in program flower.cpp:50:1: error: stray '\302' in program flower.cpp:50:1: error: stray '\240' in program flower.cpp:50:1: error: stray '\302' in program flower.cpp:50:1: error: stray '\240' in program flower.cpp:51:1: error: stray '\302' in program flower.cpp:51:1: error: stray '\240' in program flower.cpp:51:1: error: stray '\302' in program flower.cpp:51:1: error: stray '\240' in program flower.cpp:51:1: error: stray '\302' in program flower.cpp:51:1: error: stray '\240' in program flower.cpp:51:1: error: stray '\302' in program flower.cpp:51:1: error: stray '\240' in program flower.cpp:52:1: error: stray '\302' in program flower.cpp:52:1: error: stray '\240' in program flower.cpp:52:1: error: stray '\302' in program flower.cpp:52:1: error: stray '\240' in program flower.cpp:52:1: error: stray '\302' in program flower.cpp:52:1: error: stray '\240' in program flower.cpp:52:1: error: stray '\302' in program flower.cpp:52:1: error: stray '\240' in program flower.cpp: In function 'int input()': flower.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] flower.cpp:13:49: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]